Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Get reusable workflows in sharepoint library using powershell

$
0
0

I have powershell that traverses each library in entire site collection to find document count in libraries with some other additional useful information.

One of the information fetched is workflow count and names of workflows in library.

Below script gives me list of custom workflow added in library as well as OOTB workflows

                                            foreach ($wf in $Library.WorkFlowAssociations)
                                            {
                                                   if($wf.Name -notlike "*Previous Version*")
                                                   {     
                                                         write-host "Workflow -->" $wf.Name
                                                   }
                                            }

Script fails to list down any reusable workflow added in library.

Is there any other method which will list all workflows along with reusable ones.


Ratnadeep Raul




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>