Refresh page after workflow completes

  • 6 July 2017
  • 1 reply
  • 4 views

Badge +1

I have a simple form with a save and complete button which makes an update to a list which initiates a workflow.  When the form closes, I want the view on the list to show the resulting list updates of the workflow, but the workflow doesn't finish before the user returns to the list view.  Reloading the page manually then shows the updates.

Is there a way to hold the form open until the WF is finished or similar?


1 reply

Userlevel 4
Badge +12

Hi Chris,

theoretically you could use a JavaScript to pause for a specific duration but there is no guarantee that the workflow executed and finished everything by that time as execution times varies depending on server load and running workflows.

SharePoint is not a real-time environment. Everything interesting runs in timer services and queues. If you build a workaround here, users will expect it to happen everywhere. So I'd suggest you make users aware that the request will be processed but it will take a moment. From my point of view this is still better than let people stare at a freezed screen for a moment while the workflow hopefully finishes.

Best regards

Enrico

Reply