Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Event got triggered but notification not triggered

varma2
Mega Sage

Hi All,

 

I need to trigger the notification from flow design using the event, in the event only i need to define the group dynamically.

below script works in event log it shows user sys id in Param 1 but notification not triggered.

 

var grp = current.getValue('reslovergroup'); 
var arr = [];

var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group', grp);
gr.query();
while (gr.next()) {
arr.push(gr.getValue('user'));
}

// gs.eventQueue parameters: eventName, GlideRecord, parm1, parm2
// You cannot pass an array directly. You must either loop or join it.

for (var i = 0; i < arr.length; i++) {
gs.eventQueue('your.event.name', current, arr[i], '');
}

Please suggest

8 REPLIES 8

KrishnaMohan
Giga Sage

@varma2 

did you check your notification field i.e Event parm 1 contains recipient is active

KrishnaMohan_0-1757946346771.png

 If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan

Hi @KrishnaMohan 

@KrishnaMohan Yes, Param1 active and user have email address and notification enabled for the user.

 

Thank you

@varma2 from where you are triggering the event,flow designer? 

Bhuvan
Giga Patron

@varma2 

 

Check if you have typo for resolver group in current.getvalue.

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan