How to cancel a timer in workflow

Joshuu
Kilo Sage

Hello All,

As shown below, I want the timer should be cancelled once if the approval is completed before 3 days of time. If not completed then it should go to the 2nd level of approval from the timer.

find_real_file.png

What should the next activity in the workflow?

Please assist.

Thanks,

Priya.

1 ACCEPTED SOLUTION

Sukrit
Giga Contributor
Hi Priyarao,
 
I think this can be easily solved by using a sub-flow. Just make another workflow with timer and approvals (these should begin and end together) and call this workflow in the workflow that you have built.
 
Hope this works 🙂
 
Thanks
 
 

 

View solution in original post

27 REPLIES 27

Hi,

then in that case you should use this

1) output of both timer and approval will go to join activity

2) then use if activity with script to check if the approval is still in requested state

a) if yes then cancel the 1st approval and go to next approval

b) if no then do your next activity

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

thank you Ankur, I will try this and get back incase of any issues.

Hello Ankur,

I have added as below. But, the join activity is waiting until the timer gets completed. and vice versa. Even if the timer is completed it is waiting for approval to be done.

find_real_file.png

Hi,

join will wait till both the activities are completed

remove join and take output of both to if activity and test

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Joshuu
Kilo Sage

Yeah, but my requirement is different 😞