Passing variable values between Nintex workflows

There may be a requirement to pass certain workflow variables between workflows when you split a larger process into small workflows.

To do this the target workflow can be configured with start data variables. These start data variables can then automatically be populated when the workflow is started through the nintex web service.

Create a new workflow as normal and select Workflow Settings then variables and then create a new variable.

In this example 2 workflow variables were created as start data.

EmpID                   –             Single line of text

LeaveREQ            –             Number

To test starting a workflow with these variables automatically set when the workflow starts using web service method. In this example the StartWorkflowOnListItem method will be used.

The first step is to use a build dynamic string action to create the association Data XML that will be required.

The format for the association data parameter is as follows:






Based on the workflow we are attempting to start there are 2 start data items EmpID and LeaveREQ.

The association data will be as follows:





This will set the variable EmpID to x067900 and LeaveREQ to 4.

The best method to use when creating a start data variable is to build the value first using a build dynamic string action

To use this start data within a call web service action the configuration is as follows

Please ensure Encode inserted tokens is selected.

That’s it you are done. Happy Nintexing 🙂

About Joseph Velliah
As a SharePoint Evangelist my professional interests tend to be technical and SharePoint focused. I run a blog at "SP RIDER" where you can expect to read HOW TOs and scenarios that I run into during my day to day job. I hope my posts will give back a little to the community that is helped me.

11 Responses to Passing variable values between Nintex workflows

  1. Siju George says:

    Hi Joseph,
    Can we pass variables between two lists or whether we can pass these variables inside one list itself?

    Siju George.


  2. Hi Joseph ,

    Can we pass value to Nintex variable from code.
    eg. I have a timer job and a Nintex workflow valirbale. I want to pass value from timer job to nintex workflow.



  3. I have a infopath form and want to use Nintex workflow to autopopulate 3 sharepoint list when the form is submitted. A step by step approach to do this will be very much appreciated


  4. Are you facing any problem in attaching the nintex workflow on the infopath form library?


  5. Hi, can I use multiple line of text as variable to store my association data? I tried some values but it is being cut to 255 characters. Let me know your thoughts. Thanks


    • I do not think so. Is it possible to save the multiple line content in a list and pass the Item Id of that from one workflow to another. Once the processing is done you can delete the record you created with multiple line of text. Not sure what is your requirement, just a suggestion.


      • Here’s my scenario, I’m creating a workflow that will format an email layout of a table with data. To store the table layout, I enclose it in a single multiple line of text type variable. Just like below.
        Ex: {WorkflowVariable:DataA}…


  6. Does the workflow to start is Site or Reusable workflow? I am trying with Site workflow and configured association data properly but workflow is not called.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: