Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
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.
View solution in original post
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
Likes
Replies