Scripted notification recipients

xiaix
Tera Guru

I have a Notification record on the incident table:

find_real_file.png

 

I want to script the recipient list "Who will receive". 

find_real_file.png

 

How can I script the recipient list?

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

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);

View solution in original post

16 REPLIES 16

And here's my new "event" record:

 

I'm unsure if I need to enter data into the empty fields?

 

find_real_file.png

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.

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.

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.

Yep, I did all that, including removing the conditions on the notification record since they're now on the BR.