AnsweredAssumed Answered

web service ProcessTaskResponse3 call for to-do task error 'Server was unable to process request'

Question asked by mwillmer on Sep 3, 2015
Latest reply on Oct 13, 2015 by cju@evolusys.ch

Hi, fellow devs.

I'm using Nintex Workflow 2013 (3.0.4.0) - I know this is not the latest, but it what I have to work with.

I have encountered a problem using the web service call processTaskResponse3 to complete a 'to-do task'.

I used the blog Build a Better Nintex Workflow "Assign To-Do Task" Form to create the workflow, etc.

I need to set the task to 'Complete' programmatically and I'm trying to use the web service call ProcessTaskResponse3 to do this via javascript.

I can get the task id using GetRunningWorkflowTasksForListItem so I know the web service and code works.

The SDK http://help.nintex.com/en-US/SDK2013/#Reference/SOAP/NW_REF_SOAP_ProcessTaskResponse3.htm%3FTocPath%3DNintex%2520Workflo…

provides the following SOAP request which I've used:

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:nin="http://nintex.com">

   <soap:Header/>

   <soap:Body>

      <nin:ProcessTaskResponse3>

         <nin:comments>First attempt</nin:comments>

         <nin:outcome>Continue</nin:outcome>

         <nin:spTaskId>3</nin:spTaskId>

         <nin:taskListName>Workflow Tasks</nin:taskListName>

      </nin:ProcessTaskResponse3>

   </soap:Body>

</soap:Envelope>

 

It interesting that 'outcome' is a enum and I would have thought that using the value of 5 = Complete would have been correct but the response says the value is incorrect. Using the string 'Continue' doesn't give this response.

 

The response I get states:

     "Server was unable to process request. ---&gt; Invalid field name. {819e6cf2-36c3-4013-8aef-c99712c26036}  /Lists/Workflow Tasks"

 

Can anyone please shed light on how I can get this call to work?

Thanks,

Mark

Outcomes