Disable REQ Approval for Technical Catalog

Nisha30
Kilo Sage

Hello Experts,

How do I disable the REQUEST level Approval for only Technical Catalog. 

We have RITM approval and thats what we want only .

How to disable REQ Approval  for only Technical Catalogs?

 

Thanks

 

1 ACCEPTED SOLUTION

@Nisha30 

like this

var ritmSysId = current.sysapproval;
var ritmRec = new GlideRecord('sc_req_item');
ritmRec.addQuery('sys_id', ritmSysId);
ritmRec.addEncodedQuery('cat_item.sc_catalogsLIKE742ce428d7211100f2d224837e61036d'); // the sysId is for Technical Catalog
ritmRec.query();
if (ritmRec.hasNext) {
    current.state = 'approved';
}

AnkurBawiskar_0-1743431644507.png

 

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

View solution in original post

25 REPLIES 25

@Nisha30 

Glad to know that my script worked for you.

For that I already informed you will have to update OOB workflow (not recommended by me)

AnkurBawiskar_0-1743432856010.png

 

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

@Nisha30 

Please mark my response as correct and close the thread.

The discussion can still continue on the answered thread.

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

@Nisha30 

Did my reply answer your question?

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

HI @Ankur Bawiskar 

the REQ and RITM both are getting auto approved. Only REQ is needed

Thanks

@Nisha30 

I already informed in the business rule use condition as current.source_table == 'sc_request' so that it works only for REQ

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