Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Get information about workflows 2013 intances

$
0
0

Hello,

We are trying to get informations about workflows 2013 that are associated to a list.

We used this code:

$url = "http://namesite";
$spsite = new-object Microsoft.SharePoint.SPSite($url);
$spweb = $spsite.OpenWeb();
$splist = $spweb.Lists["NameList"];
$splist.WorkFlowAssociation.Count

We always got as response the 0 value when we executed the code in a list with workflow 2013.

When we executed the same code in a site with workflow 2010 we got the exactly number of workflows associated.

We tried to do this on three different farms, but we never got return data from workflows 2013.

Someone had the same problem?

Thanks!


Uélison Jean


Viewing all articles
Browse latest Browse all 7589

Trending Articles