Variable Wait activity time

Is there any way to do this? Instead of a number (Like, 5s) set it to be a value generated in the workflow

Is there any way to do this? Instead of a number (Like, 5s) set it to be a value generated in the workflow
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.



Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.