How to add Users and Groups to an email client template?

blairf
Giga Expert

This docs page tells how to add a list of email addresses, or fields with an email address:

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/notification/task/t_C...

But I want to add specific Users and/or Groups to the template.  My attempts so far have been unsuccessful.

I am working on these email client templates for use in the Major Incident Workbench.  Note that when I do 'send communication', there is a function to Add Recipients.  It recognizes Users and Groups.  But I want them pre-populated.

3 REPLIES 3

Mouli Praneeth
Mega Expert

I believe you are trying to update the communication plans.

If this is the case you will be using a recipient list to send communications.

This will be present as follows.
find_real_file.png

Open the recipient list and update the script.

Sample:

 

find_real_file.png

 

If I understand the docs correctly, a Communication Contact gets assigned tasks related to the major incident.  But I am interested in only sending them a message about the incident.  From the docs:

Define a communication contact
Orlando
Define the recipients of a particular plan to determine the target audience involved in each communication task and the responsibilities the recipients are expected to handle. A notification for a task is sent to all individuals specified for that task.

Niclas
Giga Guru

To send an E-Mail to the users that you have added with "Add Recipients" on Major Incident Workbench, you need to put this line to the "to" field of your E-mail Client Template that is linked to your Communication Task on which you click the "Send" button on the workbench:

javascript: new MIMWorkbenchUtil().getEmailAddresses(current.incident_alert);

For Communication Tasks that were automatically added, the relevant E-Mail Client Template is stored on the Communication Task Definition related list "Channels". For Communication Tasks directly added from the Major Incident Workbench, out of box it uses Client Template Default Template for ICT which - despite the docs - is not automatically fetching the previously added recipients, until you enter the following line to the To field.  


find_real_file.png