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

Dr Atul G- LNG
Tera Patron
Tera Patron

HI @tomc1 

 

You want to only cancel teh email or cancel the flow?

 

LearnNGrowAtul_0-1704449294799.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi Atul,

 

Ideally the end user would like to manage this process. The best way would be a state change or a closure of a task but the WF seems not to be able to monitor other changes and only awaits the timer countdown.

 

Kind regards,

Tom C

Hi @tomc1 

Agree. I doubt we have something OOTB which fulfil your requirement. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

piyushsain
Tera Guru

Hi,

Create a UI action which is visible only when the waiting flow is running(You can do this by creating a hidden field which would be updated when the flow is waiting).

In the UI action write a script that will close the waiting flow (https://www.servicenow.com/community/itsm-forum/cancel-running-flow-contexts/m-p/609487)

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain