Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

How async plugin handles multiple updates on same record?

(0) ShareShare
ReportReport
Posted on by 20

My scenario is that we have registered an async plugin on update event, now if we do multiple updates on the same entity record than it will create multiple instance of system jobs for every event.

Now, how can i be sure that first update event job will run first in the sequence how we do updates with time.

Any reference from async architecture or any Microsoft article to provide details on the scenario will be much appreciated.

Thanks

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: How async plugin handles multiple updates on same record?

    Hi Piyush,

    There is no guarantee that async job created first will execute first. But there is high possibility that first async job execute first.

    You can make your plugin sync to achieve your goal.

    If performance is an issue then you can create an action for do multiple updates and call that action in workflow.

    Cheers,

    Rocker

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,615 on at
    RE: How async plugin handles multiple updates on same record?

    “asynchronous operations created earlier have a better chance of executing before operations created later”

    Reference: [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/dependency-execution-order-asynchronous-operations]

    I answered similar question in SO:

    [View:https://stackoverflow.com/a/51793108/7920473]

  • Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: How async plugin handles multiple updates on same record?

    following..

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans