Oct 17 2020 03:47 AM
Hi
I am trying to find when all of my SP2010 workflows were run.
I have a PnP-PowerShell script which goes round all of the site collections, sites and subsites looking for the workflows.
I now need to find when they were last run, again using the PnP-PowerShell.
Regards
Nigel
Oct 19 2020 11:54 AM
Hi @Nigel_Price9911,
You can use the Powershell command below. Workflows will be listed by browsing all sub-sites.
https://gist.github.com/joerodgers/cae8fcf81eb9ea84cabfadcb15cb5cf3
Oct 20 2020 03:47 PM
Thank You @yunusemrearac - I will give it a try.
Oct 20 2020 03:59 PM
Having looked at this a bit closer, How do I get the date and time the workflow last ran ?
Thanks
Nigel
Oct 29 2020 11:30 PM
You can using the last runtime for SharePoint Designer Workflow with this PowerShell Script.
https://gallery.technet.microsoft.com/office/How-get-the-workflow-7d00eed9