BCC email notification from parm1

Moedeb
Tera Guru

I am wanting to send a notification out to a changing list of recipients, I already have that handled in a flow that ultimately fires an event that contains the recipient list, however it is adding those from parm1 into the 'To' field of the notification and I'd like it to not add anyone to the 'To' field and instead add them to the 'BCC'

 

I know that if I have a set list I can add the users via a mail script, however I'm not aware of how to handle it when I want to use parm1 instead of a particular user.

 

Anyone able to assist please?

11 REPLIES 11

NiveditaM
ServiceNow Employee
ServiceNow Employee

@Moedeb

 

Did any of these solutions work for you? I have a similar use case. I need to set some variable recipients through "Event parm 1 contains recipient," which will be sent as "to." However, I also have additional variable emails that I want to set as "bcc." This was being handled using email.addAddress("bcc", gr.getValue('X')); in the email script. But there's a defect: when "Event parm 1 contains recipient" is empty, the email is also not sent to the BCC recipients which is not empty.

@NiveditaM 

No didn't get it to a point I was happy with, but had to move on as I had higher priorities.