BCC field for email client template used in Major incident

Community Alums
Not applicable

We have a email client template which we are using for technical communication in major incidents(Sev 1/sev 2).

I want to use BCC field dynamically according to Incident severity i.e, sev1/sev2.

I tried mail script in htmlBody as well as in bcc but seems not working. I am also not able to use dot walking variables like we used in subject over there.

Can anyone help me with this?

find_real_file.png

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hey Manas,

My email engine is also enabled.

Actually I found one article by service now that this email object doesn't work or exist for email client template at the time of sending. This email.addAddress() only works for notification or email template.

I was just playing around it and got a solution.

Following is the business rule I've return & it worked for me. Because when we click send button in communication tab of major incident and email client template appears, it creates an entry in email logs though we send that email or not.

find_real_file.png

View solution in original post

7 REPLIES 7

Manas Kandekar
Kilo Guru

Hi

Please refer

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

 

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

Kind regards,
Manas

email.addAddress('bcc', 'joe.employee@something.com', 'dudley rocks');

Community Alums
Not applicable

I tried this, wrote this code in mail script and in email client body wrote - ${mail_script:bcc_for_major_incidents}

but it doesn't seem to be working.