Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
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

3 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