Can we extend plugin's timeout to 5 mins in online CRM instance .
if yes, then how ?
Also as said above. here is the documentation on the usage and limitation.
Sandbox plugin execution timeout is only 2 mins for good. Recommended splitting the functionality into multiple plugins that pass data among themselves using the shared variables property of IPluginExecutionContext. Though SharedVariables usage is always described for plugin steps of different stages, I believe you should be able to share data using them between plugin steps of the same stage. I find the limitations of SharedVariables given in this blog is a good read to grasp a clear understanding of them. One other common model some customers achieve this is by parent-child background workflows with custom activity step, this kind of pattern is more suited when you do not know exactly how long the functionality execution takes place. Here are some recursion patterns described https://us.hitachi-solutions.com/knowledge-center/recursive-workflows-dynamics-365-customer-engagement/ , https://www.powerobjects.com/blog/2012/11/09/create-recursive-or-scheduled-workflows-in-crm/ , you may need to improvise on the concepts given in these blogs to achieve your requirement. Also please be aware of the fact that there is a hard limit about the number of times recursion can occur in workflow execution.
The workflows you create include logic to detect and stop infinite loops. If a workflow process is run more than a certain number of times on a specific record in a short period of time, the process fails with the following error: This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. The limit of times is 16.
The above are more classic(legacy) of handling the requirement, As another commentator mentioned Power Automate is a more futuristic way of designing for the above requirement.
Regards,
Praveen T
D365 Support Engineer
Microsoft Corporation
Hej,
if it is a async Plugin you could also create a Power Automate Flow instead. They do have a timeout of 10 min, if i remember correctly.
//Benedikt
Hello,
It's not possible. I would recommend to consider WebHooks to AzureFunction as alternative to plugins. You will not have those 2 mins timeout issues there.
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27