Flow Designer Wait for a duration of time Action with Script

Marco Stein
Tera Contributor

Currently we're trying to give the flow designer a chance instead of using the classical way to create workflows. We're wondering why there's no substitute for the workflow timer scripting capabilities in the flow designers wait for duration action. Has anybody an idea how we can use scripting capabilities in combination with the wait for duration action in flow designer? Or is this an example were we have to use still the classic workflows?

Classic workflow Timer activity with option "Script":

find_real_file.png

Flow designer Wait for a duration of time Action without any Script option:

find_real_file.png

 

4 REPLIES 4

Voona Rohila
Kilo Patron
Kilo Patron

Voona Rohila
Kilo Patron
Kilo Patron

Did you tried storing the calculated duration in a field and selecting from picker

find_real_file.png


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Ankur Bawiskar
Tera Patron
Tera Patron

@Marco Stein 

yes script based waiting is not there in Flow Designer

But till when do you wish to wait? possibly you can try to use Do Until Flow logic with some stop condition

Regards
Ankur

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

Marco Stein
Tera Contributor

We want to wait until next thursday starting from the closed date of an incident. Of course, for that we can implement a new field which contains that next thursday and use it in the flow designer. But we dont have to do this using the classic workflows and the timer activity there. Seems like the do until flow is not a feasible solution. Regards, Marco