Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Multiple instances of real time workflow update same field

(0) ShareShare
ReportReport
Posted on by

I've a real-time workflow that updates an integer field. The problem I have is when multiple instances of the workflow run at same time.

The first instance of the worklfow increments by 1 the integer field, but the second and later instnaces take the non updated value, i.e

First instance: Days = 1 -> workflow sets it to 2

Second instance: Days = 1 -> workflow sets it to 2 (Initial value should be 2 and updated value 3)

Third instance: Days = 1 -> workflow sets it to 2

*This post is locked for comments

  • Verified answer
    Jorge S Profile Picture
    on at
    RE: Multiple instances of real time workflow update same field

    I solved it by updating the record prior to the main update.

    thanks for your replies

    3463.Capture.PNG

  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Multiple instances of real time workflow update same field

    All 250 records are updating same Leave entitlement record?

  • Jorge S Profile Picture
    on at
    RE: Multiple instances of real time workflow update same field

    The workflow gets executed when the field ApprovedOn is updated. The user can select many records (up to 250) and approve all of them by cliking a button.

  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Multiple instances of real time workflow update same field

    First of all, I want to know that how multiple instances get execute?

    As you said This workflow get execute when value of a field get change. It means user is changing value of a field very frequent.

    If it is executing on multiple field change then I suggest you to create a separate workflow for each field change. it will resolve your problem.

  • Jorge S Profile Picture
    on at
    RE: Multiple instances of real time workflow update same field

    It doesn't work as expected when multiple instances of the workflow run at same time.

    0016555.Capture.PNG

  • Jorge S Profile Picture
    on at
    RE: Multiple instances of real time workflow update same field

    Hi, increment by is the only operation I do in the workflow. There is only the required check before the increment.

  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Multiple instances of real time workflow update same field

    You can set increment before any other operation.

  • Rawish Kumar Profile Picture
    13,758 on at
    RE: Multiple instances of real time workflow update same field

    its a real time workflow - your update and this workflow will run in a single transaction.  so all updates will have different transactions independent of each other.

    Just play around with it - i am sure you will find a way.

  • Jorge S Profile Picture
    on at
    RE: Multiple instances of real time workflow update same field

    The workflow only updates the field in one entity. It runs on a field change.

    Related to Time entry and project approval of Dynamics PSA

    778518625.Capture.PNG

  • Jorge S Profile Picture
    on at
    RE: Multiple instances of real time workflow update same field

    Hi Rawish, thnaks for your reply!

    I thought of doing adding a boolean but waiting for the other instances to run until the value is Yes, but anyway all other waiting instances will run when the value changes again at same time, which will cause the same problem.

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans