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

Get workflow tasks from WorkflowInstance?

$
0
0

Hi!

How do I get the workflow tasks associated with a specific workflow instance? Or can I get the workflow tasks directly from the list item itself?

WorkflowServicesManager workflowServiceManager = new WorkflowServicesManager(web);
WorkflowInstanceService workflowInstanceService = workflowServiceManager.GetWorkflowInstanceService();

WorkflowInstanceCollection workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(item.ParentList.ID, item.ID);

// TODO: Get tasks...

Thanks,

Kiram

 

 

 

 

 


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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