Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to Compare Dates and Use "Wait for Condition" in Flow Designer?

SpartanW
Tera Contributor

Hi All,

I have a 'Waiting Date' (date field) on the Task table. When a task moves to the 'On Hold' state and this date field is populated, I want to trigger a Flow that waits until the specified date is reached. Once the current date matches the 'Waiting Date', I would like the task to automatically update its state to 'Closed Complete'.

 

How can I compare this date or use 'Wait for Condition'?

SpartanW_0-1750921724208.png

 

Thanks.

 

@Ankur Bawiskar 

@Ehab Pilloor 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SpartanW 

you can use Wait for Duration flow logic and use Relative operator

something like this

Flow Designer : Making the flow wait until a specific date time based on a catalog variable 

AnkurBawiskar_0-1750923099415.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

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@SpartanW 

you can use Wait for Duration flow logic and use Relative operator

something like this

Flow Designer : Making the flow wait until a specific date time based on a catalog variable 

AnkurBawiskar_0-1750923099415.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

@Ankur Bawiskar , There is no 24*7 During the following schedule when I select Relative Duration?

@SpartanW, You can make a schedule record in cmn_schedule table.

 

Regards,

Ehab Pilloor