Notifications
Announcements
how to define execution order for CRM 4.0 plugins if we have multiple plugins registered on same event ?
*This post is locked for comments
Assuming you're using the plugin registration tool, when you add a step, the Execution Order value determines the order the plugins run. So if you had two plugins against the same event, give the one you want to execute first a value of 1, and the one you want to execute second a value of 2.
Does this hold good for Asynchronous Plugins too?
Also, if the same Message and Entity Type has been registered as part of two different assemblies, will the execution order work as expected?
When the rank is set in the SdkPluginRegistrationStep table in the CRM database, does it take in consideration different assemblies?
Simple answer is I don't know. I've never done either of the two things you're asking about.
Best answer I can give is to experiment - and let me know the results as I'd be interested to know too.
Hi ,
I do not think you can defined the order with asynchronous plugins. These will run behind the scenes and can take a second or 1 or more minutes to run. Typically seconds, but they are asynchronous, so will happen sometime later.
I think registering as two different assemblies will not matter. The plugin will be executed as per the set execution order. For asynchronous plugins, probably they will be initiated as per the set order but, their execution or completion will happen in any order or in parallel.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 2
Alex Fun Wei Jie 2
Shidin Haridas 2