1
votes

Hopefully someone has an answer out there and I am just unable to find it. My question is:

Is there a way to end a Nintex workflow (on a list item) through the use of JavaScript?

Points I've come across while researching today:

Note that we are using SharePoint Server 2013 (part of the issue I believe).

Any help would be greatly appreciated

1
this might help, then have to use SOAP community.nintex.com/docs/DOC-1048Shawn

1 Answers

0
votes

There is a web service action to terminate a workflow: TerminateWorkflow

You will need to build the soap request in JavaScript. The documentation has an example:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
   xmlns:nin="http://nintex.com">
   <soap:Header/>
   <soap:Body>
      <nin:TerminateWorkflow>
         <nin:listId>00000000-0000-0000-0000-000000000000</nin:listId>
         <nin:itemId>0</nin:itemId>
         <nin:instanceId>4f3d251f-3e3d-4065-8784-8d698868f429</nin:instanceId>
      </nin:TerminateWorkflow>
   </soap:Body>
</soap:Envelope>

It also has a response sample:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <TerminateWorkflowResponse xmlns="http://nintex.com"/>
   </soap:Body>
</soap:Envelope>