How add to CC Current User ?(In Quick message )

Dmytro Haba2
Tera Contributor

Hello 

I can't add current User to CC in Quick Message.

can you help me ?find_real_file.png

 

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you have to configure the Client Email Template (go to System Policy > Email > Client Template) and add in CC the current user using the following code:

javascript:gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">"

Example:

find_real_file.png

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

 

View solution in original post

7 REPLIES 7

You have to see where is located this field and call it properly in the Email Client Template using the right field "table.value".

Example: contact.email

I created  Email script  but it not worked 

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
          /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
          /* Optional GlideRecord */ event) {

          // Add your code here
	email.addAddress("cc", current.project_manager.email, current.project_manager.name);

})(current, template, email, email_action, event);

Small update. Current path is
System Policy > Email Client> Email Client Templates