Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Like plugins, real-time workflows are executed before (pre-operation) or after (post-operation) the core operation. Both are executed inside the same database transaction.
Here are outlined some actions I have executed in order to evaluate their execution order:
Then after created and Entity A record, updated its name to ‘Test update’ and got the following audit.
The audit record shows that:
By default: real-time workflows run before than plugins for both pre and post events.
This is explained by the default value of execution order which Plugin Registration Tool sets when registering a plugin step which is equal to one.
The execution order defined on Plugin Registration Tool set the Rank property of the sdkmessageprocessingstep entity that specifies the processing order within the stage.
The workflow entity stores the definition of Real-time workflows. The Rank property is not defined when they are created form the Dynamics CRM, although there is the possibility of updating it through SDK.
If the Rank is not defined then these events are executed first. If the Rank is defined then events with lower rank are executed first.
Then I updated the execution order (the Rank property) of both plugin steps to zero without updating the Rank of workflows. The audit record shows that the plugins steps run before than workflows.
Finally I set the execution order according to the next table:
Business Applications communities