I'm trying to get a list of workflow processes started after a given date. I am using PowerShell to call the core service API. I'm doing the below to get a list of active processes. that does give me a list of everything active, but if I open one of the process items, the Activities property only shows the current activity.
$filter = New-Object Tridion.ContentManager.CoreService.Client.ProcessesFilterData $filter.ProcessType = 1 $proc = $client.GetSystemWideList($filter) $p1 = $proc $activ = $p1.Activities $activ.Count
result = 1
If I go and load the process item directly by id
$p1Full = $client.Read($p1.Id, (New-Object Tridion.ContentManager.CoreService.Client.ReadOptions)) $activFull = $p1Full.Activities $activFull.Count
result = 3
So, Obviously when I'm getting the list, it's not getting the whole details on the processes. I tried adding
$filter.BaseColumns = 3
but that didn't make a difference. Given that we have hundreds of workflow processes running, I would rather not have to re-query to get the full object on each item just to detect the start date. Any other approaches I could use? or am I just missing something obvious?