Get Task List name or List ID for task using webservices

  • 28 March 2018
  • 6 replies
  • 40 views

Badge +1

Hi All,

Question is about Nintex Workflow 2013 on premise which is new in our company (DHL). We are tiring to make POC to get approval task from different systems on one place for users.

So my idea was to use Nintex Webservices to get all task on site for user and then possible outcomes ->display this and after user input call another Web service to push this to SharePoint..

Sequence:

https://help.nintex.com/en-US/sdks/sdk2013/Reference/SOAP/NW_REF_SOAP_GetRunningWorkflowTasksCollection.htm

Version with current users does not work ... not sure why ...

https://help.nintex.com/en-US/sdks/sdk2013/Reference/SOAP/NW_REF_SOAP_GetOutcomesForFlexiTask.htm

-For UI to display possible outcomes.

https://help.nintex.com/en-US/sdks/sdk2013/Reference/SOAP/NW_REF_SOAP_ProcessFlexiTaskResponse2.htm

-Process task

My question:

 how can I get TaskListName which is needed in second and third call ? - Cannot find any web service for this.

Thank you.

Best,

Tomas


6 replies

Userlevel 5
Badge +14

you  can find TaskListName in workflow settings dialog.

214057_pastedImage_1.png

Badge +1

Hi Marian,

I know about this settings and also how to change it but I would like to get this value using some web service. From web service calls I know TaskID. Workflow name, Workflow instance ID. I would like to develop more generic solution for aggregating tasks from different sites and want to get Task List name dynamically and I assume there needs to be way how to read this if you know almost everything about task from web service calls.

Best,

Tomas

Userlevel 5
Badge +14

then the only option I can think of is to get workflow definition from ExportWorkflow service operation and examine returned XML for a task list configuration.

more generic solution for aggregating tasks from different sites

btw, are you aware of 'My Workflow tasks" webpart?

that seems to me to be very much like what you want to achieve

https://help.nintex.com/en-US/nintex2013/help/#Workflow/RootCategory/SharePoint/Nintex.Workflow.ItemsPendingApproval.htm… 

Badge +1

Thank for idea .. I was thinking about this but was hoping for something simpler.. Also problem can be with long running WF if configuration was changed but task which I would like to aggregate was created before this change ... Different WF version.. and another problems...

O.K I will try to work with this sad.png...

I know My Workflow task web part but this aggregation should be cross systems ...SAP, SharePoint ... so not hosted on one site collection.

Best,

Tomas

Userlevel 5
Badge +14

I'd say your better approach would be to get collection of tasks for a given user.

not sure what problems you experienced, it should normally work.

Badge +1

Not sure why but it does not return anything ... but anyway ... return type is same as for

https://help.nintex.com/en-US/sdks/sdk2013/Reference/SOAP/NW_REF_SOAP_GetRunningWorkflowTasksCollection.htm

  <UserTask>                <SharePointTaskId>5</SharePointTaskId>                <HumanWorkflowID>5</HumanWorkflowID>                <AssignedTo>                   <OtherEmailAddress/>                   <UserID>i:0#.w|testdomain	estuser</UserID>                   <IsDomainGroup>false</IsDomainGroup>                   <IsSPGroup>false</IsSPGroup>                   <IsUser>false</IsUser>                </AssignedTo>                <Comments/>                <EntryTime>2015-01-27T22:38:21.02</EntryTime>                <WorkflowName>TestDocFlexiTaskWorkflow</WorkflowName>                <WorkflowInstaceId>e60bae97-46cd-44b0-87cb-371974f08fc3</WorkflowInstaceId>                <TaskName>Assign Flexi task</TaskName>                <TaskType>MultiOutcome</TaskType>             </UserTask>

And there is Task ID but not Task list name
Which is needed for
getting possible outcomes and process response..

Reply