send email notification to recipients in BCC

Servicenow lear
Tera Contributor

hello All,

We have a requirement where in there are a lot of email addresses in recipient and we would want the receipient addresses move to BCC so that users do not get to know other recipients email addresses.

how to achieve this ?

 

UI action >>event>>notification

 

Servicenowlear_0-1670423192027.png

 

 

6 REPLIES 6

Good.  You are in the right path.

Then disable all recipients in the notification since you will add them to the bcc by calling an email script from the body of your notification. To create a new email script type "notification email scripts" in the left nav and click new. I suggest you to check this one as a good example: /sys_script_email.do?sys_id=61cb5c953b01030037556b4ee3efc42b

The first line of the email script stores the event.parm2 (it would be parm1 in your case) in a var.

You want to do something similar by storing parm1 (list of users) in a variables.\

Then using that information you can glide the user table and one by one you run the command email.addAddress('bcc',.... by entering the right information from each user.

 

email.addAddress('bcc','email@address.com','Firstname Secondname');

If I helped you with your case, please click the Thumb Icon and mark as Correct.


Jyotsna7
Tera Contributor

Hi ,

I am also having same requirement. It's not about one particular Notification. We want achieve it for all Emails which are sending out.

Did you got any solution on this already ?