Auto reject approval after "x" days in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 09:50 AM
Is there a way within the workflow of a catalog item to reject an approval automatically if it's not approved within a certain(x) amount of business days? I know it can be done through a scheduled job, but we have a need to make this auto reject within the workflow as it will be a different amount of days based on the catalog item.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 10:29 AM
have you tried using "Timer" activity ? wait for that specific days and then use run script activity after that to reject the approval .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2020 08:21 AM
How would that work in conjunction with the approval? Would you run from the previous activity to both the approval and the timer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 01:17 PM
Such use cases should always be handled with flow designer, not workflow (unless you especially want to make more complicated configuration)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2020 08:22 AM
Thanks Stefan - we currently do not use flow designer which is why I was asking about the workflow portion but I think we are going to use a scheduled job and just use a standard "x" amount of days. I will look into flow designer as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2020 05:32 AM
You can leverage Flow designer for this without scripting
1) Trigger - Record created on sysapproval_approver
2) then use Wait for a duration of time - give Wait for 72 hours; schedule as 24x7
3) the use If flow action and check if record is not approved
a) if yes then reject it
4) use update record action and set state as Rejected
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader