Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

How to call instance variable instance.vars.xxx in one workflow in to another workflow sub query activity?

Avatar

Level 6

Hi team, 

 

In workflow wkf1, I have declared the instance variables. Now, I want to use these instance variables in a subQuery activity (with wkf1 added as the template) within another workflow, wkf2.

 

When I attempted to generate the instance variables in the alert email from wkf2, the variables declared in wkf1 appeared as undefined in the alert email.

 

Thank you in advance

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hello! Instance variables are connected with the workflow itself - if you want to make variables accessible within a subworkflow pass in event level variables with vars.myVariableName on that specific arm of your workflow. 

 

"The event variables (vars.xxx) enable the exchange of data between the elementary tasks of a workflow process. These variables are passed by the task that activated the task in progress. ... They are then passed to the following activities."

 

https://experienceleague.adobe.com/en/docs/campaign-classic/using/automating-with-workflows/advanced... 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Hello! Instance variables are connected with the workflow itself - if you want to make variables accessible within a subworkflow pass in event level variables with vars.myVariableName on that specific arm of your workflow. 

 

"The event variables (vars.xxx) enable the exchange of data between the elementary tasks of a workflow process. These variables are passed by the task that activated the task in progress. ... They are then passed to the following activities."

 

https://experienceleague.adobe.com/en/docs/campaign-classic/using/automating-with-workflows/advanced...