Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Pass a variable from Javascript code to diffusion

El-Coder
Level 2
Level 2

Hello everyone,


In Adobe Campaign Classic, I want to pass a variable I created in JavaScript Code activity to a diffusion, is this possible? If so, how do I do it?

Many thanks,

1 Accepted Solution
Malarrajan_Sundarraj
Correct answer by
Level 3
Level 3

Hi @El-Coder,

 

Create JS event/instance variable: vars.xxx='test123'

  • To pass in the workflow activity: $(vars/@xxx)
  • To pass directly in the delivery : <%= vars.xxx %>

 

- Malarrajan Sundarraj

View solution in original post

3 Replies
Jyoti_Yadav
Community Advisor
Community Advisor

Hi @El-Coder ,

 

You save your variable as an instance variable: instance.vars.xxx="abc".

And same variable you can fetch in delivery: <% instance.vars.xxx %>

 

Thanks,

Jyoti

Malarrajan_Sundarraj
Correct answer by
Level 3
Level 3

Hi @El-Coder,

 

Create JS event/instance variable: vars.xxx='test123'

  • To pass in the workflow activity: $(vars/@xxx)
  • To pass directly in the delivery : <%= vars.xxx %>

 

- Malarrajan Sundarraj