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

Michael Jones -
Giga Sage

If the record you are triggering the notification from has a reference to the candidate and the manager, you would just need to add them using the "who will receive" and "Users/Groups in fields" list. For example, I've seen something similar where the candidate is the Requested For, so you highlight Request and expand with the + sign and selected Request.Requested for and then do the same but add Request.Requested for.Manager

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Mark Roethof
Tera Patron
Tera Patron

Hi there,

The Notifications form doesn't contain a CC or BCC field, though scripted, yes possible. See also this topic from earlier today:

https://community.servicenow.com/community?id=community_question&sys_id=3de58e92dbce40582be0a851ca96...

Contains amongst others, for mail script:

email.addAddress("cc",gr.requested_for.email,gr.requested_for.name);

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

@JJG It should work. Only somehow if you look at the outbox, you don't see the CC or BCC. Though actually, when really sending the mail out...

See below:

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

I set the glide.email.test.user property to null and it still does not seem to work. Perhaps I am missing something in my code? (see pics below)

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png