Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Will workflow execute if plugin registered on same event throws error

(0) ShareShare
ReportReport
Posted on by

Have small query,

say i have a plugins(both pre and post) and async workflow registered on same event(say post update of contact).

Now post/pre operation plugin steps throws an error based on some condition(mean sometimes error prone). I want know if the workflow will execute irrespective of error in plugin's

Thanks

*This post is locked for comments

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Will workflow execute if plugin registered on same event throws error

    If a sync plugin fails, the entire transaction will be rolled back and if its a full roll back, workflows will not be triggered as the execution is terminated before it gets to the stage where it can trigger the workflows.

  • Goutham A Profile Picture
    Goutham A on at
    RE: Will workflow execute if plugin registered on same event throws error

    Hi Alok,

    Even if we call workflow from plugin code and if the plugin fails at later point, will the workflow execute?I don't think so? Please suggest

  • Suggested answer
    Dynamics_Alok Profile Picture
    Dynamics_Alok 1,746 on at
    RE: Will workflow execute if plugin registered on same event throws error

    No ..in most of scenario .Workflow would not execute.

    If you want to execute Workflow irrespective of Plugin error ,you can handle Exception and even you can call Workflow from your Plugin code.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Will workflow execute if plugin registered on same event throws error

    Refer this:

    stackoverflow.com/.../async-sync-plugins-on-the-same-event

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans