Adding a condition to a flow that does a time comparison against a variable in Flow Designer

matthew_hughes
Kilo Sage

I'm working on the following flow and I need assistance in relation to the Else If If Approval has not been approved within 30 days:

 

matthew_hughes_0-1710156937549.png

 

I'm wanting the condition to trigger if the 'created' field is over 30 days and the Stage is 'Waiting for Approval'.

matthew_hughes_1-1710157057804.png

However. what I've noticed is that there is no way of comparing dates or the number of days against the selected 'created' field. What I'm wanting to achieve is that if the RITM has not been approved within 30 days that it was originally created and the Stage is 'Waiting for Approval', then it will automatically set the RITM record to Closed Incomplete. Is it possible to do this in Flow Designer?

 

 

 

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

Hi @matthew_hughes you could.use wait for condition action to check the days  from created date

Regards
Harish

Hi @Harish KM  How would I apply that?

Hi @matthew_hughes you can use wait for condition action after if approval here you can check created date is passed 30 days (you need to put hours by checking how many hours is 30 days in duration) and then you can perform your logic

Refer below documentation 

https://docs.servicenow.com/bundle/washingtondc-build-workflows/page/administer/flow-designer/refere...

Regards
Harish

Could the following work:

matthew_hughes_0-1710160230860.png