
- 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:19 AM
1. go to event registry and create an event eg new.event.name
2. create a before update BR on the table your notification is being sent from
3. use glide records or list fields or whatever to populate an array with your recipients (array content can be a sys_id of a user record or an email address)
4. use gs.eventQueue() to generate your event eg:
gs.eventQueue('new.event.name', current, userArray);
5. create a notification and set it to be triggered by the firing of your new event in the when to send tab
6. tick the 'event parm1 contains recipients' box in the who to send to tab
7. put in, like, message content etc
8. test
Think that covers it more or less. Any particular bit you're getting stuck on?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:32 AM
You should have both but if not you can just do something like this.
gs.eventQueue('event name', current, '', 'event parm2 variable to send');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 06:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 08:15 AM
I was blind... parm1 options is there, just was on the left hand column! lol