- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 10:57 PM
Hi All,
How to trigger notification if user added admin role using business rule? Kindly help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:07 PM - edited 11-29-2022 11:08 PM
Hi @Debarpita ,
Create a BR as below :-
(function executeRule(current, previous /*null when async*/) {
// Add your code here
gs.eventQueue('event.name', GlideRecord, parm1, parm2); // standard form
})(current, previous);
Create event from event registry and then create the BR.
After that create one notification as when event triggered and mentioned that event there.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:07 PM - edited 11-29-2022 11:08 PM
Hi @Debarpita ,
Create a BR as below :-
(function executeRule(current, previous /*null when async*/) {
// Add your code here
gs.eventQueue('event.name', GlideRecord, parm1, parm2); // standard form
})(current, previous);
Create event from event registry and then create the BR.
After that create one notification as when event triggered and mentioned that event there.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 12:35 AM
not working created br, event registry and notification
in br after insert, roles is admin , script : gs.eventQueue('bpo.group.role.alert.event', GlideRecord, '', '');
notification : event is fired , with or without filter condition : role is admin, user my email id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 12:40 AM
Call event as below :-
gs.eventQueue('bpo.group.role.alert.event',current,gs.getUserName(),gs.getUserID());
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 04:15 AM
thanks alot