Not applicable

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

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

Tags (2)
0 Kudos
Reply