Trying to CC email address in notification

JJG
Kilo Guru

Hello,

I have an email notification that has the purpose of introducing a manager and a candidate. When the email sends, I would like both of them to receive the same email, with their email addresses CC'd so they can start to communicate together. Is this possible? What would that code look like? Thank you for any help.

1 ACCEPTED SOLUTION

Jim Coyne
Kilo Patron

Do the email addresses really need to be cc'ed?  Why not the "To" in the email?  As Michael Jones mentioned yesterday, if they are reference fields on the target record, you can just select the proper fields in the "Users/Groups in fields" field on the "Who will receive" tab.

The less scripting in the platform the better (although not always possible to avoid).

View solution in original post

17 REPLIES 17

Hi,

you can use GlideApi in email Script to get the details of manager.

for example,

var gr = new GlideRecord('table name');

gr.addQuery();

gr.query();

while(gr.next())

{

var manager_email = gr.manager;

email.addAddress("cc",manager_email);

}

 

Please Mark Correct/Helpful answer .

Thanks and Regards,

Kunal.

 

 

It doesnt seem to be showing the cc in the email (See pics below)

find_real_file.png

find_real_file.png

find_real_file.png

 

Omkar Mone
Mega Sage

Hi

Could you show how you have called your mail script in your notification?

 

Regards

Omkar Mone

See pics below

find_real_file.png

find_real_file.png

 

Jim Coyne
Kilo Patron

Do the email addresses really need to be cc'ed?  Why not the "To" in the email?  As Michael Jones mentioned yesterday, if they are reference fields on the target record, you can just select the proper fields in the "Users/Groups in fields" field on the "Who will receive" tab.

The less scripting in the platform the better (although not always possible to avoid).