Guest User

Untitled

a guest
Jun 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. int listItemId = 6326;
  2. var workflowInstances = wfInstanceService.EnumerateInstancesForListItem(listGUID, listItemId);
  3. clientContext.Load(workflowInstances);
  4. clientContext.ExecuteQuery();
  5. foreach (var instance in workflowInstances)
  6. {
  7. PrintText("Instance ID: " + instance.Id.ToString(),sw);
  8. PrintText("Status: " + instance.Status.ToString(), sw);
  9. PrintText("Creation time: " + instance.InstanceCreated.ToString(), sw);
  10. PrintText("Last updated time: " + instance.LastUpdated.ToString(), sw);
  11. PrintText("User status: " + instance.UserStatus, sw);
  12.  
  13. IDictionary<string, string> props = instance.Properties;
  14. foreach(KeyValuePair<string, string> kvp in props)
  15. {
  16. PrintText(kvp.Key+": "+kvp.Value,sw);
  17. }
  18.  
  19. PrintText("---------", sw);
  20.  
  21.  
  22. }
Add Comment
Please, Sign In to add comment