Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Does running a Realtime workflow before a field is updated results in a single service call or two service calls by the CRM platform

Posted on by 228

Hi There, i'm updating a field on the same entity where the real time / synchronous workflow is registered to run. If i choose - starting the workflow before the record fields change, does this result in the saving a service call (update) to the server, where i'm doing an update operation in the workflow step. in other words, will the record be updated twice or once as i'm comparing to that of a pre-operation plug-in.

2017_2D00_07_2D00_19_5F00_1254.png

*This post is locked for comments

  • Raghu_b Profile Picture
    Raghu_b 228 on at
    RE: Does running a Realtime workflow before a field is updated results in a single service call or two service calls by the CRM platform

    thanks Alex.

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Does running a Realtime workflow before a field is updated results in a single service call or two service calls by the CRM platform

    You are right.. And it's only for real-time workflows, it seems..

    I checked in the audit log quickly. There are two update operations in this scenario. They happen at the same time (and CRM tends to mix up the order in such cases), but, from what I can see, "update record" step in the workflow is submitted to the database first (which would be expected, so it's probably how it is).

    0160.Capture1.PNG

    That update on the screenshot is happening in the workflow:

    0160.Capture1.PNG

  • Raghu_b Profile Picture
    Raghu_b 228 on at
    RE: Does running a Realtime workflow before a field is updated results in a single service call or two service calls by the CRM platform

    Hi Alex, thank you for your reply, before option is available for the Update operation as well. screen shot attached.

    4130.2017_2D00_07_2D00_19_5F00_1254.png

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Does running a Realtime workflow before a field is updated results in a single service call or two service calls by the CRM platform

    Hi,

     I think that particular "before" only works for "delete" operation. You can't do "before" an update as far as I know, at least not with the workflows (you can use "before" with a plugin, though, but that's a different question)

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans