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

Avatar

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

Avatar

Correct answer by
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

0 Replies

Avatar

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

Avatar

Correct answer by
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