Get unique Approval Group name of Impacted CIs in a CR

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 04:35 AM
I would like to write a BR for notification purpose.
For Example - Above is a CR and this CR, there a list of Impacted CIs and each CIs contain few Prod Approval Groups as displayed in coma(,) separated. I wanted to send notification to these groups. If a group is a part of multiple impacted CIs, then only 1 email should get triggered to that group listing all the impacted CIs instead sending multiple emails for each CIs to the same group.
So, I wanted to create a BR to trigger an event. And in the BR, I want to have 2 arrays that should store all impacted CIs and Prod approval groups respectively.
Now, in the gs.eventqueue(), I want to pass the unique Prod Approval group names and corresponding CIs in comma separated to trigger notifications.
Can anyone help me to build this ? I've tried multiple times but failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 05:40 AM
https://www.servicenow.com/community/itsm-forum/1-email-notification-to-be-sent-to-approval-group-us...
https://www.servicenow.com/community/virtual-agent-forum/how-to-send-emails-to-the-groups-that-conta...
https://www.servicenow.com/community/developer-forum/how-to-send-emails-to-the-groups-that-contains-...
https://www.servicenow.com/community/developer-forum/get-unique-approval-group-name-of-impacted-cis-...
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 05:41 AM
Since others have already tried helping you and you don't bother to reply to them to tell them what isn't working so they can help you further, but you just raise the question again:
You could populate recipients and message body via a notification email script sourcing details from the 'current' record.
Another option would be custom sysevents triggered by a BR.
You can then populate CI details into 1 parameter field and recipients (from CI relationships) into the other parameter
and the consume the sysevents with a notification - but if you wanted it to look pretty you would probably need a notification email script to populate the message body from your CI values.
If this solution doesn't work, please reply with what you already tried and what didn't work (and what you did to troubleshoot) instead of ignoring the answer again and raising the question for a fifth time!!
https://www.servicenow.com/community/itsm-forum/1-email-notification-to-be-sent-to-approval-group-us...
https://www.servicenow.com/community/virtual-agent-forum/how-to-send-emails-to-the-groups-that-conta...
https://www.servicenow.com/community/developer-forum/how-to-send-emails-to-the-groups-that-contains-...
https://www.servicenow.com/community/developer-forum/get-unique-approval-group-name-of-impacted-cis-...
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark