cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
strnaddhl
Nintex Newbie

Get Task List name or List ID for task using webservices

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_GetRunningWorkflowTasksCollect...

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

Labels: (2)
0 Kudos
Reply
6 Replies
Automation Master
Automation Master

Re: Get Task List name or List ID for task using webservices

you  can find TaskListName in workflow settings dialog.

0 Kudos
Reply
strnaddhl
Nintex Newbie

Re: Get Task List name or List ID for task using webservices

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

0 Kudos
Reply
Automation Master
Automation Master

Re: Get Task List name or List ID for task using webservices

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.Item... 

0 Kudos
Reply
strnaddhl
Nintex Newbie

Re: Get Task List name or List ID for task using webservices

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 ...

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

0 Kudos
Reply
Automation Master
Automation Master

Re: Get Task List name or List ID for task using webservices

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.

0 Kudos
Reply
strnaddhl
Nintex Newbie

Re: Get Task List name or List ID for task using webservices

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_GetRunningWorkflowTasksCollect...

  <UserTask>                <SharePointTaskId>5</SharePointTaskId>                <HumanWorkflowID>5</HumanWorkflowID>                <AssignedTo>                   <OtherEmailAddress/>                   <UserID>i:0#.w|testdomain\testuser</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..

0 Kudos
Reply