Is there any way to do this? Instead of a number (Like, 5s) set it to be a value generated in the workflow
Solved! Go to Solution.
Hi @CampaignerForLife ,
You can replace wait activity with JavaScript Code Activity, and insert the below script
instance.vars.WaitTime = 5000;
task.wait(instance.vars.WaitTime);
Or By using Wait Activity > Advanced tab's Initialization script > add the same code, and Define duration as 0s in Wait tab.
Views
Replies
Total Likes
Hello @CampaignerForLife
If you have a single wait activity then you can use this code in a javascript activity before the wait activity.
instance.activities.wait[0].delay=TIME_IN_SECONDS;
Views
Replies
Total Likes
Hi @CampaignerForLife ,
You can replace wait activity with JavaScript Code Activity, and insert the below script
instance.vars.WaitTime = 5000;
task.wait(instance.vars.WaitTime);
Or By using Wait Activity > Advanced tab's Initialization script > add the same code, and Define duration as 0s in Wait tab.
Views
Replies
Total Likes
Views
Likes
Replies