Hello,
I wanted to reset the depth value from my custom workflow/plugin itself based on some conditions. Is it possible? Or is it possible to change the WorkflowSettings.MaxDepth property from my code?
Thanks.
Hello,
I wanted to reset the depth value from my custom workflow/plugin itself based on some conditions. Is it possible? Or is it possible to change the WorkflowSettings.MaxDepth property from my code?
Thanks.
No, it is not possible to reset depth. It will be set by the platform based on the execution.
If you are online then No, you cannot change the WorkflowSettings.MaxDepth from your code.
Hi Inkey Solutions,
Every time a running Plugin or Workflow issues a message request to the Web services that triggers another Plugin or Workflow to execute, the Depth property of the execution context is increased. If the depth property increments to its maximum value within the configured time limit, then the platform considers this behaviour an infinite loop and cancels all further Plugin and Workflow execution.
The maximum depth of eight and time limit of one hour are configurable by the Microsoft Dynamics 365 administrator using the PowerShell command Set-CrmSetting and the WorkflowSettings.MaxDepth Property. However, I do not recommend changing these values.
Hi.
I think it is possible using PowerShell command Set-CrmSetting, but not recommended to change default setting unless it is necessary.
These default settings might be reverted back to default values when you install / update CRM system.
Check below articles
docs.microsoft.com/.../gg458341(v%3Dcrm.8)
Hello,
I don't think that's possible.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156