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

Hi Rhodri,

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 using relative in the wait for condition?

Thanks in advance.

 

Regards,

Abhisek Chattaraj.

Hi Abhisek,

 

Rhodri_0-1695201069311.png

It should be formatted like this. With follow up date replaced with your field X.

 

But remember if the field is likely to be updated while waiting. The wait condition uses the original value it had when it started waiting (see the link I added on my previous response)

 

Thanks 🙂

Hi Rhodri,

 

Thanks for your help. 

Here scenario is changed now. For example, today is 21st November. If that date time field value is 5th November (means on the 45th day as compared to current date). This condition I have to set in the wait for condition. It should not consider after 45th day as compared to current date.

 

The condition 'Relative after 45 days' is considering any date after 45 days as compared to current date but we have to set it for the 45th day only as compared to current date.

 

Thanks&Regards,

Abhisek Chattaraj.

 

You can add an extra AND to your condition:

field X relative after 44 days from now AND

field X relative before 46 days from now.

 

Example 3 and 5 days to check 4 days:

Rhodri_0-1695284000112.png

Rhodri_1-1695284069731.png

 

I would consider though what will the flow do if the date is already less than 45 days away, it would hang without some kind of check before hand that it isn't already within your < 44 days.

 

This is not working as that relative before is taking the past date as compared to current date.