Expand my Community achievements bar.

SOLVED

Instance variable vs event variable in Adobe Campaign Classic

Avatar

Level 2

Hi team,

Instance variable vs event variable in Adobe Campaign Classic Please provide an example in the workflow.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Kumar_27 ,

Go through this document on 'Tuesday tech bytes' series, explained in detailed about task variable, event variable, instant variable, calling a variable inside a delivery and much more.

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic/tuesday-tech-bytes-adobe-cam...

 

Example, In the below Workflow there are 2 independent flows.

Consider an Event variable is created in JS-1 on 1st flow. In the same flow, it is possible to read the value of JS-1's event variable in JS-2.

But when it is tried to call the 1st flow's event variable in 2nd flow (say, JS-3), it will print 'undefined'. 

ParthaSarathy_0-1702576982201.png

 

So, If the requirement is to create a variable in JS-1, which can also be used in JS-3 (another flow of same workflow), then create it as instance variable.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Kumar_27 ,

Go through this document on 'Tuesday tech bytes' series, explained in detailed about task variable, event variable, instant variable, calling a variable inside a delivery and much more.

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic/tuesday-tech-bytes-adobe-cam...

 

Example, In the below Workflow there are 2 independent flows.

Consider an Event variable is created in JS-1 on 1st flow. In the same flow, it is possible to read the value of JS-1's event variable in JS-2.

But when it is tried to call the 1st flow's event variable in 2nd flow (say, JS-3), it will print 'undefined'. 

ParthaSarathy_0-1702576982201.png

 

So, If the requirement is to create a variable in JS-1, which can also be used in JS-3 (another flow of same workflow), then create it as instance variable.