web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Raghu_b Profile Picture
    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
    34,477 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
    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
    34,477 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans