Best way to cancel RITM

anusarma
Kilo Expert

Hi All,

Would like to have your inputs on this case.. What is the best way to cancel an RITM? I shall briefly explain my scenario..

Request is auto-approved and RITM has one or two levels of approvals, depending on the catalog item. We have workflows set based on category. RITM needs to be cancelled if it is neither approved nor rejected for certain number of business days. We are checking this timer through a workflow, and triggering an event if the RITM is not approved/rejected for the mentioned number of days. A script action is configured to cancel the RITM. 

We need to check a few things along with this cancellation:

1. If the request contains only single unapproved RITM, then the request could be directly cancelled, which takes care of RITM cancellation as well.

2.Multiple RITM may be there in a single REQ, if and only if user uses "add to cart" option before checking out. In this case, we need to check the status of the other RITMs as well:

a. If any of the other RITM is approved/rejected, then this unapproved RITM alone should be cancelled/closed incomplete - please suggest which is the best practice..

b. If all other RITMs are also unapproved, then the REQ could be cancelled, which takes care of RITM cancellation as well.

3. I also needed one clarification.. whether in case of multiple RITM under single REQ, the states/stages are taken care OOB when they are approved/rejected? whether the REQ will be closed only if all RITMs in it are closed (i mean OOB case)? or should i incorporate this to my code?

Please guide me on this.

Thanks,

Anu

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Anu,

Yes the best practice would be to use a script include and have the code being moved in that. you can call that from script action.

Not sure on point 3

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader