Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to add to email in the notification using flow custom action

Vinod S Patil
Tera Contributor

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);




@Ankur Bawiskar 

6 REPLIES 6

@Vinod S Patil 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Vinod S Patil 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader