Instance variable vs event variable in Adobe Campaign Classic | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

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-campaign-classic/m-p/627479/highlight/true#M2588

 

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'. 

 

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.

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
December 14, 2023

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-campaign-classic/m-p/627479/highlight/true#M2588

 

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'. 

 

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.

 ~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups