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