Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

A question on order of execution for child workflows

Posted on by

Let me describe the scenario.

My CRM system has a list of items that require an action to be taken on each item in the list.  There are two workflows involved.  Workflow A starts running when an item is added to the list.  Workflow B runs as a child workflow for each item in the list.

I would like to arrange this so that Workflow A never has more than one instance of Workflow B running at any given time.  Or put another way, I want to configure things so that Workflow A spawns an instance of Workflow B for the first item in the list, waits for Workflow B to complete, then moves on to the next item in the list and spawns an instance of Workflow B for that instance.

Is this possible, either OOB or with custom workflow activities / plugins?

*This post is locked for comments

  • RE: A question on order of execution for child workflows

    What were the results?

  • bpoindexter Profile Picture
    bpoindexter on at
    RE: A question on order of execution for child workflows

    I will arrange a test and post back results.

  • Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: A question on order of execution for child workflows

    I've never tested it but my gut says that would work.

  • bpoindexter Profile Picture
    bpoindexter on at
    RE: A question on order of execution for child workflows

    Aiden,

    That's kind of what I thought but there is one rub.  I will need Workflow A to run asynchronously.  So I guess the real question is, can an Async workflow call synchronous child workflows and have them finish in order?

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: A question on order of execution for child workflows

    Hi,

    It sounds like you can change Workflow B to run as a synchronous workflow and that should do it. WF-A will run and span WF-B in a loop but since they're synchronous you *should* have each finish before the next starts.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans