- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 01:51 AM
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.
What should the next activity in the workflow?
Please assist.
Thanks,
Priya.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 07:42 AM
Hi,
why to cancel the timer? let it run no issues.
if the workflow reaches end before timer timer would get cancelled
in the above script you have kept line 6, 8, 9 outside the function
add that inside and test
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 08:07 AM
Hi Ankur,
Because It is running twice as shown below.
And the CMDB application is also getting created twice because of this as below.
That is why I need to cancel that timer or else I need to write some script to include timer in approval-user condition itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 08:11 AM
Hi,
where is the logic to create cmdb record
the timer activity should not cause an issue for that
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 08:16 AM
Hi Ankur,
This is the next part of the workflow. continuation..
And for the second level of approval also we have a timer of 10 days. after that we have cancel action. That is why it is working fine as there is no dependency with the second timer. once the 2nd level of approval is done it is automatically getting cancelled. But this 1st level is not like that. It is still running behind.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 08:18 AM
Hello Priya,
Refer to this link. This might help you.
Mark the comment as a correct answer and also helpful if this helps to solve the problem.