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 

5 REPLIES 5

@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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader