Flow Design wait for condition

abhisek
Tera Contributor

I am working on a flow design where I have created a step 'wait for condition'.

In that 'wait for condition', I have to check a date time field value is after 45 days as compared to current date.

Can anyone please help me out how can I do that. It is urgent requirement.

 

Thanks&Regards,

Abhisek Chattaraj.

13 REPLIES 13

Do you mean in your scenario that say 46 days was passing the condition because of the relative before?

 

The after 44 days from now and less than 46 days from now does work off each day being 24 hours from the current datetime, rather than distinct calendar days.

 

i.e A date in 46 days but 1 hour ago would actually be 45 days? (because it's 45 days and 23 hrs)

 

Example here in my check for after 3 days but before 5 - the follow up date in 4 calendar days time but is waiting because it's not 4 days (it's actually 3 days 20 odd hours).

Rhodri_0-1695292995251.png

 

 

Dan O Connor
ServiceNow Employee
ServiceNow Employee

@abhisek  In the Wait for Condition action, you can set the condition to check that whatever date field you are using, has past 45 days. When the condition becomes TRUE, it will then move onto your new step in the flow. 

Hi Dan O Connor,

 

There is a date time field (for example X). That date time field (X) value must be after 45 days then only task will be created. So how can I check that date time field (X) value is after 45 days as compared to today's date in the wait for condition?

 

Thanks in advance.

 

Regards,

Abhisek Chattaraj.

OlaN
Giga Sage
Giga Sage

Hi,

Not sure if this will help you, but I've created a tool you can download from Share, to do date comparisons in Flow Designer.

Check it out if you like.

Date comparison for Flow Designer