See pending workflows of entire sharepoint
-
08-02-2021 - |
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.
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.