To approve or reject a SharePoint Workflow from a Nintex Workflow is very easy. There is a web service exposed from SharePoint which is Workflow.asmx, you can access it at
http:// server /_vti_bin/workflow.asmx
Now the method that we will be using to action our SharePoint workflow is AlterToDo. This method takes the following arguments:
- Item (The URL location of an item on which a workflow is being run)
- todoId (Unique identifier of the assigned task)
- todoListId (Globally unique identifier (GUID) of the assigned task list containing the task)
- taskData (Task data for conversion into a hash table)
Okay so back to Nintex now.
Step 1: Add a call web service workflow action and configure it.
Step 3: Add URL of workflow.asmx web service in the URL field, specify username and password and click refresh to update list of available methods in the Web Service
Step 3: Select SOAP Editor in editor mode, this is necessary as you will be adding some xml in TaskData parameter and select SOAP builder mode seems to html encode < > signs which results in error
Step 4: Specify item, todoId, todoListId and paste the following xml in tag.
<my:myFields xmlns:my=”http://schemas.microsoft.com/office/infopath/2003/myXSD” >
Your configuration should look something like this
Try some fixed values first for testing purposes and click run and then replace them.
I hope you find this post useful. Thanks for reading.