January 16, 2013

Start a workflow on an item in another list

Some quick notes on how I start a workflow on an item from either a site workflow or a workflow on a different list:

Add a Call web service action fill in the URL as Web URL/_vti_bin/NintexWorkflow/Workflow.asmx”. Either enter a username and password or use stored credentials and click Refresh. Select the web method StartWorkflowOnListItem. Fill in as follows:
  • itemID: an integer variable containing the Item ID of the item you want to start the workflow on.
  • listName: I like to use the unique ID of the list instead of the actual name, e.g.: {12345abc-4524-4657-b4ac-c324aaf1ebca}, include curly brackets (decoder/encoder).
  • workflowName: the name of the workflow to start.
  • associationData: leave blank if there are no start variables on the target workflow. Otherwise include a single line text variable containing any necessary start variables formatted like this:
               <Data>
               <variable name>{local variable containing desired value}</variable name>
               </Data>
  • Encode inserted tokens: This may need to be checked if you get the following error when attempting to initiate the subsequent workflow: "Error returned from server: The remote server returned an error: (400) Bad Request."

More detailed information on Nintex.com: http://connect.nintex.com/files/folders/16832/download.aspx