- 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:21 AM
Thanks alikutty for the response .I tried this but it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 03:22 AM
Can you paste the script used?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 03:40 AM
There is a typo in line
ritm.addEncodedQuery(
it should be
gr.addEncodedQuery(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 03:24 AM
Request Approved notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 03:29 AM
I mean the condition which you have written, Did you replace those SYS_IDs with the SYS ID of your catalog items?