Code Help! Aging Request Cleanup

Jason Rooney
Tera Contributor

Team

I need your help again!

Goal: Cancel all Requests that are waiting for approval that is 90 days or older

Need to run a background scrip to do the following:
Pull a sysapproval_approver state is Requested and older than 90 days

On the correlating Request - Run a IU action (on Sc_req_item) called Cancel Request item [cancel_req_item]

 

-Thanks again

 Hope to see you Knowledge 2025! 

 

 

1 REPLY 1

J Siva
Tera Sage

Hi @Jason Rooney 
As far as i know, "Cancel Request item" is not an OOB UI Action. So it's not possible for us to replicate the same functionality in the background script or flow.
However, if your requirement is only to cancel all the qualified RITMs, then you can achieve that by using flow designer.
Please find a sample below.


JSiva_0-1741848977314.png

JSiva_2-1741849046039.png

 

JSiva_1-1741849012100.png

Hope this helps.
Regards,
Siva