
- 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 05:32 AM
If you're cool with adding recipients to cc or bcc then you can use the email.addAddress() method mentioned in the docs Chuck sent. If you want to add them in the 'to' field you'll have to switch it up and trigger the notification with an event, then you can pass through recipients as parm1.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 05:43 AM
Yes, I want to add to the "to" field, not bcc or cc.