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.

End a flow that is awaiting timer in Flow designer

tomc1
Tera Contributor

Hi All,

 

I need to implement a logic to have a user cancel a workflow in flow designer that is awaiting a timer. Basically there is a timer that waits for 4 months. After the 4 month's, the flow will send out an automatic mail. The user would like to have the option to be able to stop this mail from being if needed. It looked like a straight forward an not so complex question but cannot seem to get this to work. 

 

Thank you so much in advance for your support!

 

Kind regards,

Tom

5 REPLIES 5

AJ M
Mega Sage

If it's something like Cancel the Flow if it goes to a specific state, you can change your timer to a "Wait for Condition" with a timeout.

Taking State == Closed as an example condition to cancel the Flow. We can wait for the condition of State is Closed with a timeout of four months. Then after, we can check the state. If it's not closed, we know it's the timeout and we send the email.