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

Do we have any alternative way Ankur. I have added wait for condition instead of join. But no luck.

Please let me know if we have any other ways to do it.

Hi,

what happens when you use if activity.

it would wait for reaching to if until either approval is either approved/rejected OR the timer crosses

Regards
Ankur

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

Hi Ankur,

I used if after join as you suggested. But join is waiting until both the activities are completed.

But I need either one should work not both.

If activity is working fine.

Hi,

use if and don't use join

since your requirement requires they would run in parallel

Regards
Ankur

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

Joshuu
Kilo Sage

Hi Ankur,

I have added if as below, please correct me if I am wrong. Also, can we cancel this timer activity through script if approval state is approved.

or is it possible to write timer for 3 days condition in approval user activity itself.

find_real_file.png

 

find_real_file.png