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)

Realtime workflows and child workflows

(0) ShareShare
ReportReport
Posted on by 607

HI

I was wondering what happens in following situation:
A parent workflow runs in realtime. When this workflow would call a child workflow, the child workflow runs async and in another transaction?

I have noticed that the parent workflow does not wait for the child workflow to be executed and continues with the next steps.

How can you wait for the results of the child workflow?

Grts

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Realtime workflows and child workflows

    Thank you! After changing the child processes to real time, now everything works fine.

  • Community Member Profile Picture
    on at
    RE: Realtime workflows and child workflows

    Hmm, I've got an interesting symptom where I have a real time workflow which calls another RT child workflow, which updates a record, and the step immediately after the return from the child tests and fails to see the update.

    The update is however displayed via the UI, obviously after a delay many orders of magnitude greater than the time it takes to start executing that next step test in the parent workflow....??

    Both workflows have the same record as their context - the child is really just a "subroutine" with some common "code" in it - I'll be re-entering the child steps in the main workflow to avoid the failure this causes.

    Cheers,

    Michael

  • ashlega Profile Picture
    34,477 on at
    RE: Realtime workflows and child workflows

    According to MSDN, real-time child workflow should run synchronously:

    msdn.microsoft.com/.../dn481598.aspx

    "All activities in the workflow and any child workflows, except asynchronous workflows, are part of a single transaction. Asynchronous child workflows are queued and execute in a separate transaction."

  • DlwK Profile Picture
    607 on at
    RE: Realtime workflows and child workflows

    Hmz it is already a Realtime child workflow. Will have to check again, as yesterday I was calling a child workflow setting an attribute to Yes. In the parent flow I added a condition checking that same attribute and cancelled the workflow with a reason for each value. The reason each time was the value for False.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Realtime workflows and child workflows

    Agree with Mahen. Because the child workflow is async, it will run in background and not in real time. You will have to make the child workflow as real time as well.

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Realtime workflows and child workflows

    Make child workflow real time as well.

    Thanks

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans