Vadim Tabakman

Jump to bottom

Nintex Workflow - Store and Retrieve Data UDA

Lately, I've had conversation with a number of people around getting running workflows to communicate to each other.  Send data back and forth.  Send some information from one workflow to another, to get it to do some work.

You can do this with the Store Data and Retrieve Data actions in Nintex Workflow for SharePoint on prem.

The video below explains it all.

Since I've described most of it in the video, I'll keep this short.  The Store Data actions lets you store some data in a named location, that is specific to a workflow instance.  Think of it as a Global Variable for that workflow instance.  This means that other workflows can set the value of that global variable.

In order to do this, you need to know the Workflow Instance ID where you want to store this.

The final part is the ability to read data from this "Global Variable".  It looks very similar.

But to get two workflows to talk to each other, they need to the Workflow Instance ID.  So think about where you want to store this.  In the example of the workflows below, they store the workflow instance ID in the Title field.  You probably don't want to do this. It's good for an example.

The process I have built out looks like this:

Parent workflow starts and stores it's workflow instance ID in the Title field.

Some time in the future, a Child1 Workflow starts and then maybe a Child2 Workflow starts.  These workflows will update a "Global Variable" for the parent workflow instance and set the value.  But, since the Store Data action overwrites any existing value, we need to be a little smarter.

To make this a little easier, I wrapped up the Store Data action into a User Defined Action.

The User Defined Action takes a Workflow Instance ID, the Global Variable name and the value.

The action then checks the current value of the global variable.  If it's not set, then this UDA sets it.  The Parent workflow needs to be smart enough to look at the data and if there is something, read it and reset it to blank so that other child workflows can try to update it.

Conclusion

I hope this helps and opens your mind into the possibilities with these actions.

Downloads

Posted by Vadim Tabakman Monday, November 30, 2015 11:01:00 AM Categories: Nintex Nintex Workflow Nintex Workflow 2013 Retrieve Data Store Data User Defined Actions
Copyright Vadim Tabakman
Rate this Content 0 Votes

Comments

Wednesday, December 2, 2015 6:00:06 AM
emha
Gravatar

re: Nintex Workflow - Store and Retrieve Data

Hello Vadim,

do you know of a way how to exchange data with/between site workflows from other site?

Store & RetrieveData works just within the site, and there doesn't seem to exist neither a workflow.asmx WebService method that could do that.

 

emha.

Wednesday, December 2, 2015 8:44:53 AM

re: Nintex Workflow - Store and Retrieve Data

Hi emha,

since those actions don't support that, you'd be looking at having some list somewhere, where you read and write data from.

cheers,

Vadim

Wednesday, December 9, 2015 5:22:55 AM
Bernadette
Gravatar

re: Nintex Workflow - Store and Retrieve Data

Hello Vadim,

I ask you this question here because I have a main workflow that has 4 workflows inside , each of them has to start base on the value of a switch condition(the 4 WF are inside a loop and Switch too), for example in the first loop we look the condition and the first WF starts and when the first WF terminates we go back to the main WF  we increment the counter and again we look at the condition and basse on it, eg, the third WF strarts, We need that the WFs terminate before starting another WF.At the end we go back to the main workflow and at the end of this one we start another WF. But for the moment i cannot start ever one of the 4 WFs, I don't know how i can do to start them.

Can you help me please, it's very urgent and i am beginner in nintex.

 

Thank you in advance,

 

Best regards,

 

Bernadette

Monday, December 14, 2015 4:25:40 AM
Bernadette
Gravatar

re: Nintex Workflow - Store and Retrieve Data

Hello Vadim,

I resolved my question, myself.

Best Regards,

Bernadette

 

 

Monday, December 14, 2015 8:11:16 AM

re: Nintex Workflow - Store and Retrieve Data

Hi Bernadette,

I'm glad you resolved it. Apologies for not getting back to you.  Lots of travelling recently, and has been hard to keep on track.

Vadim

You must sign in to this site to post comments.
Already Registered?
Sign In
Not Yet Registered?
Register
  • RSS





 

Statistics

  • Entries (239)
  • Comments (1722)

Categories