Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Multiple Plugin - Same Operation on Same Entity - Different Execution Order

Posted on by Microsoft Employee

Hi Folks

Apologies for this less valuable question, however I just would like to get clarified. If I have 2 plugins on same operation & entity, but different execution order, then on the execution first plugin encounters error, will next plugin get triggered? Thanks.

Regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Multiple Plugin - Same Operation on Same Entity - Different Execution Order

    Thanks, mates @mehdi & @soumen. will check this when the similar case comes up, was having that consideration to find the best possible solutions for the business requirements. Have a nice one!

  • Soumen S Profile Picture
    Soumen S on at
    RE: Multiple Plugin - Same Operation on Same Entity - Different Execution Order

    yes if you call both the plugin from one workflow then the entire operation will fail, I thought there are two different individual plugin.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Multiple Plugin - Same Operation on Same Entity - Different Execution Order

    Hi,

    @Soumen I don't think so… I believe that all plugins in the same pipeline and main operation will be canceled. Additionally, if your plugins run in synchronous mode, the actions done by those plugins will rollback.

    Example: 

    I have a plugin named UmaLearning_Plugins.Plugins.Plg_IdeaPostOperation which will be executed in those two steps: 

    pastedimage1621264980963v1.png

    If the first step is executed without any error, the second step is executed: 

    pastedimage1621265166236v2.png

    if an error occurs when the first step is executed, the second one is not executed:

    pastedimage1621265239788v3.png

    To be sure, you can easily test the same scenario in your dev environment. 

  • Suggested answer
    Soumen S Profile Picture
    Soumen S on at
    RE: Multiple Plugin - Same Operation on Same Entity - Different Execution Order

    hi,

    IF those two are individual plugin and does not depend on each other then the 2nd one should get execute.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans