Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Parallel Custom Workflows Task Delay Logic

Posted on by 105

Hi All,

We have a workflow that allocates tickets to an order. This is done via a C# custom workflow activity. This workflow works perfectly while assigning tickets to 1 order, but now I have requirement, where we need to able to select multiple orders and assign tickets in bulk. 

The issue I'm facing is that these workflows start at the same time and assign the same ticket range across all these orders. I need to make the second workflow instance onwards wait and queue up, until the first one completes and so on.

Any suggestion on how this can be done? I've tried Task task = Task.Delay(5000); in the code, but I get the timeout of the workflows which go over 2 min time limit.

Any help is greatly appreciated.

Thanks!!

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Parallel Custom Workflows Task Delay Logic

    Hi Toly,

    There is no way to have this kind of dependency between workflow execution and putting a delay may not help due to 2 min timeout. Can you share more details on how you are generating that tickets? Is it a kind f incremental auto number?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans