Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Execution Order and Stage VS Multiple plugins on same CRUD operation and Entity

(0) ShareShare
ReportReport
Posted on by 355

I created several plugins and registered them with the Plugin Registration Tool. Some of them are associated to the same CRUD operation and primary entity.
It's not clear to me how should I set the Execution Order and the Event Pipeline Stage of Execution: should I set different values for the multiple plugins associated to the same CRUD method and entity?

For example, I have a plugin called CheckFields, it ensures that the required fields are not null. I registered it by setting "Movie" as Primary Entity, "Create" as Message, "1" as Execution Order and "PreValidation" as Event Pipeline Stage of Execution.

I have another plugin called "IncrementCode", it assigns a default code to new records. It's associated to the entity movie too and it's triggered by the CREATE operation too, so the values for Message" and Primary Entity are the same.

To avoid conflicts, should I assign different values for the Execution Order and/or the Event Pipeline Stage of Execution? And why?

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Execution Order and Stage VS Multiple plugins on same CRUD operation and Entity

    If you need them to both run in the PreValidation stage then its ok to keep them there.

    The execution order is the one to change here, 1 = first one to run, 2 = second, etc.

    I think the better question is, if they are on the same event would it make sense to it to be 1 plugin with both actions taking place?  IE: 1 plugin step registered firing and inside the code calling 2 different methods to complete your process.

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

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans