cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

How Do I Access Association Data in a Child Workflow?

Jump to solution

I have 2 workflow, and am trying to pass association data from Parent to Child. I don't see how to access the association data in the child workflow. Can anyone help with this?

0 Kudos
Reply
16 Replies
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

Hi Roger Brown‌,

There are two ways this can be done that I know of. One is to store the data in a field in the underlying list. The other is to use the Store Data and Retrieve Data Workflow Actions.

Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

Patrick Kelligan‌, the problem is that the child workflow runs on a separate list from the parent.

I will check out the store and retrieve actions.

0 Kudos
Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

Patrick Kelligan‌, if I could access the Workflow Instance ID it seems that I should be able to access the association data that I setup in the parent wf. I mean, what is the point of association data except to pass data from one workflow to the other? Maybe I'm missing something.

0 Kudos
Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

You could try setting up an itermediary list that will hold the data for you. Create a key that the other workflow would recognise, either a composite key or use the workflow instance ID as you mentioned in your post. Just thinking outloud.

0 Kudos
Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

Hi ‌,

o can get the Workflow Instance via the workflow context. For example, load it to a variable as in the screenshot below.

0 Kudos
Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

‌, so I load the wf instance ID into a variable in the parent wf. How do I then access that variable from the child wf? All instructions I've read say to do this or that in the parent wf, then just retrieve that value in the child. But they don't say HOW to retrieve in the child.

0 Kudos
Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

you have to configure child workflow's variables that should accept inputs from parent workflow as 'Show on start form'

then, if you use Start workflow action to start child workflow, they will appear on action's configuration dialog and you will be able to configure what data to hand over.

if you use web service call to start child workflow then association data has to match variable names from child workflow.

Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

‌, I am using the call web service to start the child workflow. I've got the variable in the parent and child workflows to be the same name. I am passing that variable in the association data, and the variable on the child workflow is shown on the start form. But the variable in the child workflow is not picking up the value.

0 Kudos
Reply
Workflow Hero

Re: How Do I Access Association Data in a Child Workflow?

Jump to solution

The association data in the call web service action on the parent WF:

The variable on the child WF start form:

0 Kudos
Reply