- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 06:26 AM
Hi All,
Need your help in configuring one notification for sysapproval_approver table
When to send condition -
An Approval, targeting the sc_req_item table, is assigned to a user |
Who will receive - approver
one more condition added is that item.catalog contains service catalog
how to configure this notification?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 06:43 AM
if you are saying approval email needs to be sent on RITM only if RITM->Catalog Item->Service Catalog
Then do this in OOTB email in advanced notification condition
if (current.source_table == 'sc_req_item') {
var ritmSysId = current.sysapproval;
var ritmRec = new GlideRecord('sc_req_item');
ritmRec.addEncodedQuery('cat_item.sc_catalogsLIKEe0d08b13c3330100c8b837659bba8fb4');
ritmRec.addQuery('sys_id', ritmSysId);
ritmRec.query();
answer = !ritmRec.hasNext();
} else {
answer = true; // don't check if the approval is not for RITM
}
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-15-2025 06:30 AM
Hi @Priya V M
You can achieve this using event registry and buisness rule with required condition.
Create after business rule and trigger notification using the event.
Let us know where you stuck..
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 06:34 AM
there is already OOTB approval email which goes when approval is raised for RITM
why you want to create another one?
This is the OOTB email notification
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-15-2025 06:43 AM
if you are saying approval email needs to be sent on RITM only if RITM->Catalog Item->Service Catalog
Then do this in OOTB email in advanced notification condition
if (current.source_table == 'sc_req_item') {
var ritmSysId = current.sysapproval;
var ritmRec = new GlideRecord('sc_req_item');
ritmRec.addEncodedQuery('cat_item.sc_catalogsLIKEe0d08b13c3330100c8b837659bba8fb4');
ritmRec.addQuery('sys_id', ritmSysId);
ritmRec.query();
answer = !ritmRec.hasNext();
} else {
answer = true; // don't check if the approval is not for RITM
}
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