Question

We have SharePoint 2013 Environment, we have some issue with workflow manager services. because of that no workflows are starting automatically on create/update.

Even if I manually start workflow on any item it will stay in not started state.

I am in communication with Microsoft support and they have suggested to update the workflow manager version.

before doing that I wanted to see how many workflows are pending in all sites.

Is there any way I can see that.

Was it helpful?

Solution

Omi, here is an csom script getting the workflow execution status for all the workflows deployed to a SharePoint Site. You can edit it to check for all your sites.

https://gallery.technet.microsoft.com/office/How-get-the-workflow-7d00eed9

OTHER TIPS

Here you can find a sample PowerShell script in old thread PowerShell to get workflow status in a list items of the SharePoint Online

You can amend the code the loop thru all the lists/libraries in your site.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top