web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to define execution order for CRM 4.0 plugins ?

(0) ShareShare
ReportReport
Posted on by 1,587

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

I have the same question (0)
  • Dan Evans1 Profile Picture
    675 on at

    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.

  • Nithin Paul Profile Picture
    on at

    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?

  • Dan Evans1 Profile Picture
    675 on at

    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.

  • alf Profile Picture
    17,915 on at

    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.

  • Suggested answer
    v22arvind Profile Picture
    65 on at

    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.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 2

#1
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans