Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

timeout in plugins

(0) ShareShare
ReportReport
Posted on by 70

Can we extend plugin's timeout to 5 mins in online CRM instance .

if yes, then how ?

  • Suggested answer
    RajuB Profile Picture
    on at
    RE: timeout in plugins

    Also as said above. here is the documentation on the usage and limitation.

    docs.microsoft.com/.../avoid-batch-requests-plugin

  • Suggested answer
    thonda Profile Picture
    on at
    RE: timeout in plugins

    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

  • Benedikt Bergmann Profile Picture
    190 on at
    RE: timeout in plugins

    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

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: timeout in plugins

    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.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans