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

Shivalika
Mega Sage
Mega Sage

Hello @Nisha30 

 

Have you checked the flow where this approval is getting generated ? 

 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

RITM Approval flow is all OKAY we did in Flow Designer, However REQ we have not but we need to disable it only for Technical Catalogs

Hello @Nisha30  

 

I found this flow exists in OOB 

Shivalika_0-1742996964800.png

 

To make it not work for technical catalogs - maybe you can modify the conditions after checking out. Price condition already exists here, if you have never modified it. So adding it again, won't make any logic. 

Or if you need this workflow, maybe copy this and modify the conditions per requirement. 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Hi @Shivalika  thanks yes there is i found that in WF.

what is the dot walk field for RITM in REQ table?

 

Thanks

Hello @Nisha30 

 

There is no field for RITM on REQ table because there is one to many relationship between REQ and RITM, one REQ can have several RITMs. But one RITM will have only one REQ. 

 

That's why my suggestion is to checkout this workflow and add an activity called "Run script" instead to get the catalog - whether service or technical and then stop it. 

 

Or if this catalog is not useful for you because you said you don't have any price concept on your instance , then you can consider Deactivating it. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY