Ashwin Saini’s Post

View profile for Ashwin Saini, graphic

Software Developer || Power Platform & Dynamics 365 Enthusiast

Hey fellow Dynamics developers! Have you ever encountered the frustrating 'stuck workflow' issue in Dynamics 365, where a workflow gets stuck in a loop and won't progress? I recently faced this issue while working on a project and found a simple yet effective solution. By adding a few lines of code to the workflow's JavaScript, I was able to resolve the issue and get the workflow moving again. Here's the code snippet that fixed the issue: ``` // Add this code to the workflow's JavaScript var workflowContext = executionContext.getExecutionContext().getWorkflowContext(); workflowContext.setIsSynchronous(true); ``` This code sets the workflow context to synchronous, allowing the workflow to progress beyond the stuck point. I hope this helps someone out there who's facing the same issue! #Dynamics365 #Workflow #Development #Solution #CodeFix" #Dynamics365 #Workflow #Development #Solution #CodeFix

  • Solving the Stuck Workflow Issue with simple code Fix

To view or add a comment, sign in

Explore topics