Variable Wait activity time | 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.
ParthaSarathy
ParthaSarathyAccepted solution
New Participant
Mar 22, 2023 1:02 PM UTC

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.

 

 

 

 

 ~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups

2 replies

ParthaSarathy
ParthaSarathyAccepted solution
New Participant
Mar 22, 2023 1:02 PM UTC

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.

 

 

 

 

Translate
 ~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
_Manoj_Kumar_
New Participant
Mar 22, 2023 12:58 PM UTC

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;

 

Translate
     Manoj     Find me on LinkedIn