Event got triggered but notification not triggered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 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
4 hours ago
@Bhuvan nope i can see the user sys id in event log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Please check below posts for reference
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0791868
Check instance email logs as from your screenshots it show email notifications are triggered.
If email logs do not show any entry, check if event name is correct in BR and matches event registry. Using scripts background check using a sample record if event parm1 is set correctly.
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan