- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2025 04:59 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 07:34 AM
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';
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 04:33 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 07:27 AM
Tried below BEFORE INSERT Business rule. seems not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 07:34 AM
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';
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 07:48 AM
Thank you for marking my response as helpful.
I believe I have answered your question.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 07:49 AM
this is working .Thanks
only thing can we set the workflow not to trigger here instead of Approved.