
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?
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,