Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugin not executing when the process is automated with workflow

Posted on by Microsoft Employee

 I have a plugin which is executed on the message "Update", filtering attribute is a field called "contractstatus". It is run in calling user's running context and execution order is 1. Pipeline is Pre-validation, execution mode synchronous and deployment is server. A preimage with some of the attributes is also created.


 This plugin is getting triggered when the user clicks on one of the buttons in CRM which changes the value of "contractstatus" .Basically the job of the plugin is when triggered, will clear one field in one entity and another is updated with the value of the field cleared.


 I have now created certain a background workflow which checks certain conditions and which when met, will change the field of "contractstatus". The issue now is that the plugin is not working on this case. The field in oneentity is not getting cleared and other is not populated with the field with the value of cleared field.


It's like the plugin is dependent on the user clicking the button in CRM.
Any feedback as to where I am wrong?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin not executing when the process is automated with workflow

    Hi Alex,

    It had something to do with the time. So there is a date and time field. It's checking that. If  that field is in the future it is working fine. However, if it's in the past it's not working.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Plugin not executing when the process is automated with workflow

    Hi Donald,

     I'm wondering if there is a condition on the context.Depth - depth would be different if the plugin is "initiated" by a workflow, so you'll need to modify that condition

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