How to add manager into CC in email client template from record producer?

Sneha_Krishna1
Tera Contributor

Hi,

I have a requirement to add manager into cc in email client template from record producer.

I have 2 variable set one is requester information and second is Job info. Job info has only one field that is job and it's reference field of sn_hr_core_job table. requester information has a a field of subject person so when subject person is selected then job field will show the job for that subject person. now I want to fetch subject person's job manager email Id into cc. Can anyone help me on this?  

 

@Ankur Bawiskar @Kalaiarasan Pus  @Anirudhkuma  @Jaspal Singh  @iris_geist 

 

 

Thank you!

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@Sneha_Krishna1 

email script doesn't allow email object with email client template.

so email.addAddress() cannot be used to set CC or BCC.

See image below

AnkurBawiskar_0-1678422901195.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

So how can I achieve this requirement can you tell me?

@Sneha_Krishna1 

so you are using email client template for this.

can you share how you want to trigger this? share screenshots

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

There is a UI action on case Send email. whenever user clicks on this UI action email template pops up then manager should populate.