Configure activity feeds

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

The following sections contain information about how to configure your system for activity feeds.

In This Topic

Configuration entities

Auto post rules

Plug-ins and workflows

Wall controls

Lookup information for the post entity and post follow entity

Configuration entities

The activity feeds configuration entities are used to enable entities for activity feeds, enable post rules for entities, and configure the user’s profile pictures.

To enable an entity for activity feeds, use the msdyn_PostConfig entity. Set the msdyn_PostConfig.StateCode attribute to Active (value 0) and the msdyn_PostConfig.StatusCode attribute to Active (value 1) by using the SetStateRequest message. Specify the logical name of the entity you want to enable in the msdyn_PostConfig.EntityName attribute. Set the msdyn_PostConfig.msdyn_ConfigureWall attribute to true to enable the wall on the entity form.

Important

If you are developing custom solutions in the activity feeds enabled environment, deactivate the activity feeds for all entities before you create, develop, and export the solution. After the solution is exported, reactivate the activity feeds.

To enable a post rule for an entity, use the msdyn_PostRuleConfig entity. Use the SetStateRequest message to activate a post rule for an entity.

To configure a user’s profile picture, use the msdyn_PostAlbum entity that contains user profile images as attachments. The msdyn_Name attribute contains the name of the profile album.

For activity feeds, you can enable customizable business entities and custom entities that are user-owned, team-owned or organization-owned.

For a list of entities that you can enable for activity feeds, see Microsoft Dynamics 365 web application. On the nav bar, choose Microsoft Dynamics CRM > Settings. click Post Configurations. The Post Configurations area contains a list of entities that are configurable for activity feeds. You don’t need system administrator privileges to access the grid for viewing, but you do need administrator permissions to make modifications to items in the list, such as activating or deactivating post configurations for an entity or refreshing the list.

Note

After you create a custom entity, you must press the Refresh button in the command bar of the Post Configurations area to include the new entity so that it can be configured.

Auto post rules

You can programmatically enable or disable the post rules for an entity. These rules create localized, parameterized auto posts when events occur. For example, a post is created when an opportunity is added to an account, or a task is added to an opportunity.

For a list of the auto post rules available out-of-the-box, see Microsoft Dynamics 365 web application. On the nav bar, choose Microsoft Dynamics CRM > Settings. Click Post Rule Configurations. For more information about how to activate and use auto post rules, see Sample: Collaborate with activity feeds.

Tip

To make data import run faster, deactivate auto post rules for entities that are being imported.

Plug-ins and workflows

The custom auto post rules in different user’s locales can’t be created programmatically. However, you can create auto posts (posts with the Source attribute set to “Auto Post”) by using plug-ins and workflows when events occur in Microsoft Dynamics 365. With plug-ins and workflows you can create or delete posts, comments, and follows, or perform a specific action when posts, comments, or follows are created. For example, an email can be sent to the user when another user starts following him.

To mention a record in a post created by a workflow, use the dynamic values. For example, to mention a user who modified a post, use the following expression in the post entity Text field:
{Post URL(Dynamic)(Modified By (User))}
To add dynamic values, use the workflow designer Form Assistant in Microsoft Dynamics 365 Web workflow designer.

For more information about plug-ins and workflows, see Write plug-ins to extend business processes and Automate business processes using Dynamics 365 process

Wall controls

The activity feeds walls are web resources that can be embedded in dashboards in context with relevant grids and visualizations.For more information about how to use web resources in dashboards, see Analyze data with dashboards. For more information about web resources, see Web resources for Microsoft Dynamics 365.

To learn more about available out-of-the-box wall controls, see Microsoft Dynamics 365 Help.

Lookup information for the post entity and post follow entity

You can add a post to a record or follow a record for the entities that are enabled for activity feeds. Normally, you can find a list of entities available for the lookup, such as the list of entities enabled for activity feeds, in the RegardingObjectId.Target property of the referencing entity. However, for the Post entity and the PostFollow entity, the RegardingObjectId.Target property isn’t supported. For these entities, to obtain a list of entity types for the lookup, retrieve the msdyn_PostConfig records that are in the active state (msdyn_PostConfig.StateCode = Active (value 0) and msdyn_PostConfig.StatusCode = Active ( value 1). For retrieval, use the RetrieveMultipleRequest message. The msdyn_PostConfig.EntityName attribute contains the logical name of the entity enabled for activity feeds that you can use for the lookup.

See Also

msdyn_PostConfig (post configuration) entity messages and methods
msdyn_PostRuleConfig (post rule configuration) entity messages and methods
Activity feeds entities
Introduction to activity feeds
Sample: Collaborate with activity feeds
Write plug-ins to extend business processes
Automate business processes using Dynamics 365 process
Connect to Yammer

Microsoft Dynamics 365

© 2017 Microsoft. All rights reserved. Copyright