How to add to email in the notification using flow custom action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 04:24 AM
Hello Everyone
I have requirement to send a notification to the selected user on the catalog item.
catalog item has variable 'app manager'(type: reference). To this user we need to send a notification.
using custom flow action in the flow, how to do it please suggest.
Below code using in the custom action of the flow for triggering the notification.
(function execute(inputs, outputs) {
// ... code ...
var scItem = new GlideRecord('sc_req_item');
scItem.addQuery('sys_id', inputs.ritm);
scItem.query();
if(scItem.next())
{
var appMgr = scItem.current.variables.getDisplayValue('app_manager_approval');
}
gs.eventQueue('KP.SC.C2C.Power5Installation', gr, current.appMgr.email);
})(inputs, outputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 07:01 AM
Thank you for marking my response as helpful.
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