How to trigger the approvals based on the variable validation from flow designer

raj99918
Tera Contributor

Hi 

 

I have catalog form having two variables Start date and End dates, If selected End date should be greater than 5 days then only it will trigger approval to USER1 otherwise skip the approval How can we configure this in Flow designer?

 

Thanks

4 REPLIES 4

Bhuvan
Giga Patron

@raj99918 

 

Create the trigger as Service Catalog. Use Get Catalog variables action and create a IF condition to check whether end date > 5 days, then trigger approval flow. If the condition do not match, skip the approval and define your actions.

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@Bhuvan  Thanks for the reply but in IF condition am not able to configure that dates comparision between two dates as per my condition to check whether end date > 5 days. Kindly help me with any screenshots 

@raj99918 

 

Try below,

 

https://www.servicenow.com/community/developer-articles/date-difference-in-flow-designer/ta-p/229620...

 

You can use the import set from the article or create your own custom action for date comparisons.

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@raj99918 

 

Did you get a chance to review this ?

 

If my response helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan