- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2019 11:37 PM
How to exclude OOB notifications for some catalog items. I tried SysID is not in conditions but it is not working.
Notification is configured in Sc_request Table. Any help will be highly appreciated
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 03:45 AM
You will need to change script as following, also add proper SYS IDs
answer = checkResult();
function checkResult(){
var gr = new GlideRecord('sc_req_item');
gr.addEncodedQuery('request='+current.sys_id+'^cat_itemIN060f3afa3731300054b6a3549dbe5d3e,060f3afa3731300054b6a3549dbe5d3e'); //Replace with a comma separated list of your catalog item SYS IDs
gr.query ();
if (gr.next())
return false;
else
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 03:45 AM
You will need to change script as following, also add proper SYS IDs
answer = checkResult();
function checkResult(){
var gr = new GlideRecord('sc_req_item');
gr.addEncodedQuery('request='+current.sys_id+'^cat_itemIN060f3afa3731300054b6a3549dbe5d3e,060f3afa3731300054b6a3549dbe5d3e'); //Replace with a comma separated list of your catalog item SYS IDs
gr.query ();
if (gr.next())
return false;
else
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2022 10:25 PM
Can we use the same script on Approval table's notification?
I tried this script but it wasn't working for Approval table's notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2025 05:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 02:28 AM
Thanks Its working