
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 05:10 AM
I have a Notification record on the incident table:
I want to script the recipient list "Who will receive".
How can I script the recipient list?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 05:20 AM
I believe you would have to change send when drop down to an event is triggered. An then use a business rule to trigger the event and then on the who will receive there should be a check box "Event parm 1 contains recipient". Then and determine in you business rule who will get it and use gs.eventQueue to fire the event.
gs.eventQueue('Event Name', current, list of recipients);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:40 AM
no need for additional stuff in those fields, not even convinced the table field is required tbh. I'm sure those other fields have some relevance somewhere but for this you can just ignore them.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 08:15 AM
To build on what David said I think for the most part these are just fields so you can go in and quickly know what that event is for.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:22 AM
I would only worry about this portion of it.
System Policy > Events > Registry
You need to make sure that when you create your event that you set the table to the same table your notification is on. Then on you notification change it to fire an even and pick the event you just created. You can then remove the conditions on the when to send as you will use that in your business rule where you will use the gs.eventQueue. Let me know if you need an further help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:30 AM
Yep, I did all that, including removing the conditions on the notification record since they're now on the BR.