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 , I have tried with Script Action also, but i am unable to select output 'waitTime' in the flow. please check the script attached screenshot.

KusumaSai_0-1733484781331.png


KusumaSai_1-1733484889419.png

Please help me on this

 

@Kusuma Sai 

2 changes

1) in system property the value should be like this for 2mins. use this for testing

1970-01-01 00:02:00

if you want it for 300 seconds then update it like this (300 seconds is 5mins)

1970-01-01 00:05:00

2) then the action output should be of type duration

it worked for me -> I gave 1min timer and it's waiting for 1min

AnkurBawiskar_0-1733487697595.png

Action output type should be Duration then only you can select it in Wait for logic

AnkurBawiskar_1-1733487733049.png

 

AnkurBawiskar_2-1733487761723.pngAnkurBawiskar_3-1733487772826.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

Hi @Ankur Bawiskar , kindly let me know what type i have to select in the 'system property'.
i have tried with this on 'time format'

@Kusuma Sai 

property should be of string type

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

Hi @Ankur Bawiskar , Sorry to asking this, Action Output: timer: Empty output value cannot be blank on publish., kindly let me know what I have to select. if we given here duration days again calling system property by using script action is useless. so please suggest
and i need property value calculate exact 7 days(7*24*60*60) of time, so what I have to add in the property, please let me know.

KusumaSai_0-1733492123003.png