How to Send Email to BCC Recipients When "Event parm 1 contains recipient" is Empty?

NiveditaM
ServiceNow Employee
ServiceNow Employee

I have a use case where I need to send an email with recipients specified through "Event parm 1 contains recipient", which are set as "to" addresses. Additionally, I have variable email addresses that need to be added as "bcc", and this is handled using email.addAddress("bcc", gr.getValue('X')); in an email script.

However, I am facing an issue: when "Event parm 1 contains recipient" is empty, the email is not being sent to the BCC users either.

Is there a way to ensure that the email is sent to the BCC recipients even when the "to" recipients are missing? Any suggestions on how to handle this scenario effectively would be greatly appreciated.

3 REPLIES 3

Sanjay191
Tera Sage

Hello @NiveditaM 

You can do one thing if the Event parm 1 contains recipient is empty then you can utilize the  "to" as bcc users.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You!!

Ankur Bawiskar
Tera Patron
Tera Patron

@NiveditaM 

You might be using script to set the Event parm1. If the recipient is empty then set instance email address as Event parm1. then ensure when this email comes it's ignored in the instance.

email notification using solely BCC recipients 

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

@NiveditaM 

Hope you are doing good.

Did my reply answer your question?

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