Forum Discussion
Alexander Korablinov
Jul 07, 2017Copper Contributor
How do I get workflow instances for list item on the client side
Hi, Question: What client side API can I use to retrieve all workflow instances for SharePoint list item? Environment: SharePoint 2013/2016 with SharePoint 2010 Workflow platform, i.e. Workflo...
Jul 07, 2017
For SP 2010 workflows there is not a client side API you can use...you can only server side API...approach 2 is only valid for SP 2013 / 2016 workflows (deployed to Windows Azure Workflow)
Alexander Korablinov
Jul 13, 2017Copper Contributor
Hi, thank you for the answer.
I created a new web service and deployed it on the SharePoint server. My new service has only one method GetWorkflowsForListItem. Basically it wraps SPListItem.Workflows property.
MSDN says about this property: Gets the collection of the workflow objects that represent instances of the item workflows that are currently running, but does not get the workflow associations.
Could you please clarify: "currently running" - does it return only workflows with InternalState == SPWorkflowState.Running?
I need all workflows regardless their state.