Notification on Approval Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 06:28 AM - edited 07-15-2025 06:28 AM
Hi Team,
I need to configure a Notification , requirement is like below,
Table - Approval (sysapproval_approver)
When to send >
source Table is > sc_req_item
state is > Requested
catalogs contains > service catalog
who will Receive > Approver
how to configure this.
Regards,
Abhilasha G T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 08:04 AM
hi @Ankur Bawiskar ,
Thanks for your reply ,
Facing difficulty to cater below requirement in,
When to send,
catalogs contain > service catalog
finally achieved this, by using below script ,
answer = false;
var ritmGR = new GlideRecord("sc_req_item");
if (ritmGR.get(current.document_id)){
var catalogs = ritmGR.cat_item.sc_catalogs.getValue();
// Don't hardcode the sys_id , create a system proprety and store the value and use gs.getProperty
answer = catalogs && catalogs.indexOf("e0d08b13c3330100c8b837659bba8fb4") >= 0 ;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 08:49 AM
that's what my script was doing.
It was querying RITM with that encoded Query.
The script I shared will also work fine.
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
07-16-2025 03:46 AM
Did my reply answer 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