Using flow designer Wait for duration until reach the Value of system property.

Kusuma Sai
Mega Guru

I have a system property and the type is Integer, and the value is 300. After the trigger condition wait 300 seconds of time then execute the remaining flow. But waiting time need to be dependent on the system property value. Can you please help me on this.

If use script action to wait the time please let me know what is the input and output I have to take and what are types needs to take.

 

@Ankur Bawiskar 

1 ACCEPTED SOLUTION

@Kusuma Sai 

exit the edit mode and then set the value using data pill on that output variable

AnkurBawiskar_0-1733492539684.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

18 REPLIES 18

Ankur Bawiskar
Tera Patron
Tera Patron

@Kusuma Sai 

this link has solution

how to set time to wait for in flow designer using data pill picker? 

sharing steps here

Backend
1. Create sys property "my.duration".
2. Set the value of this property to value "1970-01-01 00:05:00". (5 minutes waiting)

Flow designer
3. Create Flow variable "My duration"
4. Insert action "Set flow variables" anywhere before your "Wait for" action, add "My duration" and set its value via script like this: return gs.getProperty("my.duration");
5. Update "Wait for" action by dragging the "My duration" pill over the "Wait for" input.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar , I have tried this but I am unable to select "My duration", it was showing as gread out. Can you please let me know what I have to add exact 7 (7*24*60*60) days of time 

@Kusuma Sai 

share your flow configuration screenshots

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 

Please check the attached screenshots, after the Set Flow variable(2nd step) i am adding 'wait for duration of time', but i am unable to select the Flow Variable or property value.
testing purpose i have given 120(2 minutes) in the system property.
tried with wait for condition also, here duration is not taken the Integer value so I have stored in another flow variable and tried

17334564698727565959012108269590.jpg173345650426632116567358634987.jpg

 

image (2).jpgimage (1).jpg