Use and update a variable in each schedule workflow run

Avatar

Avatar

santhoshsrg

Avatar

santhoshsrg

santhoshsrg

10-06-2019

Hi,

I want to use a variable, update it each time my workflow is run on a schedule.

Vapsy​, florentlb​, smacdonald2008​, Jean-Serge Biron​, hillaryc26951904​ kindly provide your feedback.

View Entire Topic

Avatar

Avatar

pierrec70731455

Avatar

pierrec70731455

pierrec70731455

11-06-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