Event got triggered but notification not triggered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
@varma2
did you check your notification field i.e Event parm 1 contains recipient is active
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @KrishnaMohan
@KrishnaMohan Yes, Param1 active and user have email address and notification enabled for the user.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12m ago
@varma2 from where you are triggering the event,flow designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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