RITM Approval

Manohararuna
Tera Contributor

if one person is creating an RITM, it should NOT go for approval to same person, rather it should go for approval to others from his team for approving it. For this i want to change the workflow .How to do it 

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

 

There are multiple ways you need to add this.

  • In the workflow/flow when you create you have to be cautious that you don't add approvals to the requestor, check it at the source.
  • Secondly of there are approvals going to groups where requestor is also added, you can 
    • write a BR to not let the approval inserter where approval is same as requestor
    • OR
    • Write a BR when some approves that they are not the requestor.

 

-Anurag

Ankur Bawiskar
Tera Patron
Tera Patron

@Manohararuna 

are you sending approval to group?

If yes then are you saying if the person who submitted the request is member of the same approval group then approval record should not be generated for him/her?

if yes then simply use before insert business rule on sysapproval_approver table

Enhance as per your requirement

(function executeRule(current, previous) { // Add your code here

    var gr = new GlideRecord("sc_req_item");
    gr.addQuery("sys_id", current.sysapproval);
    gr.addQuery('request.requested_for', current.approver)
    gr.query();
    if (gr.hasNext()) {
        current.setAbortAction(true)
    }

})(current, previous);

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hello Ankur, 

 

         Thanks for responding . Here my requirement is suppose raise he RITM Item ,i am one of the approver person in the group. In place of assign person is to me then it's automatically approved or send that request for another person approval in same group.

As of now if raise the Request Item some time it assigned to me for approval . we need to avoid that  and even if assign to same person need approve automatilly that time.

Example like below:

The attached email requests were created by a "Requestor" and the approval for the same to process it, is also coming to the same "Requestor" which will be a finding if identified in an audit.
Request you to modify the workflow that both the "Requestor" and "Approver" should NOT be the same person.
 
For Eg., if X Personis creating an RITM, it should NOT go for approval to X Person, rather it should go for approval to others from his team for approving it.

@Manohararuna 

that's not a complete business requirement.

To whom the approval should go -> this should be your 1st question to customer

Then what happens if both approver and the requester is same -> this is next part & can be handled with either not allowing approval record to be created or sending approval to his/her team. What does team mean here?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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