Use and update a variable in each schedule workflow run | 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 pierrec70731455

Hi,

if you want to use the variable in 1 workflow only use an instance variable :

instance.vars.myVariable = "blablabla";

you can find more details here : JavaScript scripts and templates https://helpx.adobe.com/campaign/kb/instance-variable-in-workflow.html

on the other hand, if what you are looking for is a variable to use across multiple workflows you have options :

getOption("myOption");

setOption("myOption", "bliblibli");

some examples in here : https://technowide.net/2017/02/28/options-store-configurations-ac/

Kind regards,

Pierre

1 reply

pierrec70731455
pierrec70731455Accepted solution
Level 4
June 11, 2019

Hi,

if you want to use the variable in 1 workflow only use an instance variable :

instance.vars.myVariable = "blablabla";

you can find more details here : JavaScript scripts and templates https://helpx.adobe.com/campaign/kb/instance-variable-in-workflow.html

on the other hand, if what you are looking for is a variable to use across multiple workflows you have options :

getOption("myOption");

setOption("myOption", "bliblibli");

some examples in here : https://technowide.net/2017/02/28/options-store-configurations-ac/

Kind regards,

Pierre