Cancel Approval Request and the Request after a specific time

vedang_vaidya
Kilo Expert

Hi,

Our Fulfiller Account Catalog has a lot of Approvals pending causing the tickets to stack up. The newest solution that has now been demanded is that the Approval be automatically cancelled after 30 days. I have been looking into this using the Schedule feature in the Approval task but have gotten nowhere. I'm guessing there is no place where we have specified what happens after the timer duration runs out, or that Schedule is simply the wrong place to implement this.

Can someone please let us know which activity can be used to accomplish this. We are not developers so some detail will help in this regard.

Attached is a screenshot of the Workflow.

Thanks in advance!!

6 REPLIES 6

There are improvements that will soon come up but for now, the requirement is that it be auto-rejected and the ticket be closed.



Can you please help with this? Thanks!        


Generally your steps should be:


  1. identify a filter that obtains those pending approval tasks (30 days or greater)
  2. script something that uses this filter to build a series of GuideRecords (run it in a background script)
  3. schedule this script to run as a regular job

I see you're a CSA - this is stuff we teach on our Scripting course: Scripting in ServiceNow Fundamentals course.



Has anyone at your place attended?   Or would you like more details?


jiral
Giga Sage

1. You may configure a workflow on Approval table, set the timer to 30 days then set state to cancelled.

2. After 1, set up an after business rules to propagate the cancellation on RITM/REQ.