AnsweredAssumed Answered

How to fetch Nintex workflow publisher/author using CSOM in Console App?

Question asked by thomas6188 on Oct 31, 2016

Hello,

 

Is there any way to retrieve Nintex workflow publisher/author (i.e. the user who created the workflow) using CSOM (C#) in a console app ? Author/Publisher property is not present while iterating `WorkflowAssociations` collection.

WorkflowAssociationCollection workflowCollections = list.WorkflowAssociations;
clientContext.Load(workflowCollections);
clientContext.ExecuteQuery();

 

foreach (WorkflowAssociation wf in workflowCollections)
{
   if (wf.InstantiationUrl.ToString() == "_layouts/NintexWorkflow/StartWorkflow.aspx")
   {
      //Display list name, Nintex workflow name and workflow author
       Console.WriteLine("List : {0} contains {1} Nintex Workflow", list.Title, wf.Name);

    }
}

Also, i am getting empty collection when using `WorkflowDefinitionCollection`

 

WorkflowDefinitionCollection publishedWorkflowDefinitions = workflowDeploymentService.EnumerateDefinitions(true);
clientContext.Load(publishedWorkflowDefinitions);
clientContext.ExecuteQuery();

 

 

Regards,

Thomas Mathew

Outcomes