- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:19 PM
I am trying to disable the "Request Completed" notification based on the item selected on the related RITM if the item on the RITM is Offboarding.
There would only be 1 RITM related to the sc_request.
Is there a way to do it from Conditions, or would it have to be scripted? If it has to be scripted, what would the client script look like?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:38 PM
if your notification is on sc_request table then you can use advanced notification condition with script
var gr = new GlideRecord("sc_req_item");
gr.addQuery("request", current.getUniqueValue());
gr.addQuery('cat_item.name', '!=', 'Your Item Name Here'); // give your catalog item name
gr.query();
answer = gr.hasNext();
Something like this here
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
06-02-2025 09:22 PM
Hi,
Add one more condition in the like item is not off boarding. So that it will not trigger the notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:24 PM
Unfortunately item isn't visible on the sc_request level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:38 PM
if your notification is on sc_request table then you can use advanced notification condition with script
var gr = new GlideRecord("sc_req_item");
gr.addQuery("request", current.getUniqueValue());
gr.addQuery('cat_item.name', '!=', 'Your Item Name Here'); // give your catalog item name
gr.query();
answer = gr.hasNext();
Something like this here
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