Auto reject the approval if the approver is not approved for 30 days

antony4007
Tera Expert

Any one achieve the below in Service now. If yes please suggest the steps.

"Approver must approve the RITM approval within 30 days from the created date. If they fail to do so, the RITM should be auto-rejected with added comments "Approval timeline exceeded, Request item is rejected" and send a notification to requester and approver.

Thanks,

Antony

1 ACCEPTED SOLUTION

RiteshSwarnakar
Giga Guru

We can do it using Flow Designer. I used Rome version.

 

1] Schedule the Trigger to run daily at any time preferably outside business hours.find_real_file.png

 

2] Set the Action to look for all approval records which are in "Requested" state and the creation time is more than 30 days

find_real_file.png

 

3] Check if the count of no.of approvals in "Requested" state is greater than 0.

find_real_file.png

 

4] Then loop over each non approved records and finally update the state to "Rejected" and add comments as required.

find_real_file.png

 

Thanks,

Ritesh

View solution in original post

17 REPLIES 17

rajesh9885
Mega Guru

You can set this in the workflow if you have a workflow the RITM using a wait condition

 

Hi Rajesh,

Thanks for your response. In this case i need to set this into all the workflow correct?

 

 

You should ideally use Timer, Notification, and Run Script activities in the RITM Workflow for performing these sort of activities.

Timer to wait for the X-day durations, Notification to send the reminder email and the Run Script to Cancel/reject the approval.

The above steps will work if you have a single workflow for all RITM's in your system.

or else  go a Scheduled Job - as suggest by Shrutika Surwade

 

Hi Rajesh,

So all the individual RITM workflow we need to add these steps?

 

Antony

antony4007
Tera Expert

Hi Shrutika,

Thanks for your prompt response.

Same time i need to send an email to requester and the approver also.even this can be accommodated in the same script? how?

 

Thanks,

Antony