Skip to main content
Dynamics 365 general forum
Suggested answer

loop in workflows

editSubscribe (1) ShareShare
ReportReport
Posted on by 10

Hi 

I want to know how could we create a loop in workflows ?

for example after applicant send a request to manager  and he choose edit ,request should turn back to applicant for editing and again to manager for n times until manager approve the request. how could it be possible? 

  • Suggested answer
    RE: loop in workflows

    Hello Fateme,

    I hope you are well.

    You can create a workflow and set up that it can trigger based on record created or field update and also based on child execution.

    In case that you configure child execution, you can recall the same workflow but using the child request.

    It is very important to clarify that if this scenario occurs a lot of times in a few minutes, the workflow will be stopped due to detected looping.

    The depth used to detect a loop is configured on the MaxDepth setting. docs.microsoft.com/.../microsoft.xrm.sdk.deployment.workflowsettings.maxdepth

    In online environments, this configuration can't be changed, and the value is 8.

    Check these documentations about best practices: docs.microsoft.com/.../best-practices-workflow-processes

    docs.microsoft.com/.../best-practices-sdk

    I hope it can help you.

    Best Regards,

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,066 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,585 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans