0

I have in the following screenshot many workflows, but some of them are abandoned by the users and I need to identify which ones. As I cant install sharepoint designer, then I need to do this with powershell

enter image description here

1 Answer 1

4

You can check SPWorkflow.Created of the workflow instances

Here are the steps for the script:

  1. Loop through all the items and get the running workflows

    $workflows = $item.Workflows
    
  2. For every workfow instance check the creation date and compare it with the datetime of the last workflow version (from your screenshot)

    $workflow.Created
    

That way you should be able to detect the items which have old workflow versions running

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.