Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Why my plugins are executed twice

(0) ShareShare
ReportReport
Posted on by 270

Hello,

I have 3 plugins registred  to an entity with the following information :

 - entity : quote.

 - Pre operation : PreQuoteUpdate (Synchronous, filtering attributes => StateCode, statusCode)

 - Post operation : PostQuoteUpdate (Synchronous, filtering attributes => StateCode, statusCode)

 - Post operation : PostQuoteUpdate (ASynchronous, filtering attributes => StateCode, statusCode)

In a console application i execute the following code : 

en["statuscode"] = new OptionSetValue(Cancelled);
ServiceProxy.Update(en);

The plugings are fired twice. If i update another attribute in this application console beside StateCode, statusCode ... the plugins will not fired twice.

*This post is locked for comments

  • Verified answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,267 on at
    RE: Why my plugins are executed twice

    Instead of update you could work around this bug with SetStateRequest until this bug is fixed or you have updated to the newest version (hopefully its fixed with the most reason version.)

  • Verified answer
    ashlega Profile Picture
    ashlega 34,477 on at
    RE: Why my plugins are executed twice

    Hi,

    there were other threads for the same issue, for example:

    community.dynamics.com/.../210285

    It seems to be a bug

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans