Expand my Community achievements bar.

event variable in ACC

Avatar

Level 4

 

 

@ParthaSarathy

@ParthaSarathy 

@ParthaS 

@AkshayAnand 

@Craig_Thonis 

@Manoj_Kumar_ 

@Amine_Abedour 

@Marcel_Szimonisz

@DavidKangni 

@Amit_Kumar 

@ShashankNigam02

@Ganesh5067

@Jonathon_wodnicki

 

wHAT IS event variable in ACC

Lets say a workflow is having 3 activities, activiy1, actiity2,activity3

IF WE DECLARE EVENT VARIable in acc, in 1st activity, i know we can use that event variable in activity2

 

can we use that event variable which is declared in acitivity1  in actiity3??

 

 

 

Topics

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

3 Replies

Avatar

Community Advisor

Yes, If all activities are connected in same transition, then event variable can be called in activity 3 as well.

In the below diagram, event variable created in js1 can be called in js2, js3 and js4.

But when you call the event variable created in js1 in js5, it will be undefined.

ParthaSarathy_0-1706596907745.png

 

Refer 'Tuesday tech bytes' series, where event variable is explained in detail with example.

 

Avatar

Level 3

if in your first wkf, if we have-- test/fork acitivity in between and in false transition

means if we use this event variable defined in js1 then will it work

 

 

Also, if

the event variable created in js1 in js5 also, then whats the diff between event variable and instance varibale

Avatar

Community Advisor

@jefrii , in the 1st flow, if you use fork/Test activity, still you can use the event variable in both true and false transitions.

To know the difference between event and instance variable with example, refer the documentation - https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic/tuesday-tech-bytes-adobe-cam...