How to send Email recipient's in BCC for Event Parm 1 & 2

cp10
Tera Contributor

Hi Team, I have requirement to send an email recipients in BCC not TO. I have created the report (Task table) and have the list of assignment groups and Manager so the recipients are Group members and Group manager.

- Created scheduled script execution for the same, also created email script to send the recipients in BCC but its not       working, could you please help me to fix this issue.

- Please find the attached screenshots of report, scheduled script execution and email scripts.

 

Report Conditions:

cp10_0-1743827468391.png

 

Scheduled Script Execution:

cp10_1-1743827713261.png

 

Email Script:

cp10_2-1743827825950.png

 

 

 

 

 

6 REPLIES 6

Shivalika
Mega Sage

Hello @cp10 

 

Both recipients and recipients manager are itself an array as you have declared them as array in your scheduled report and passed the same. You need to split or parse it. Directly access it in the form of array. 

 

for(var i=0;i<event.parm1.length;i++)

 

same for parm2. 

 

Try this and let me know in case of queries. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Ankur Bawiskar
Tera Patron
Tera Patron

@cp10 

you will require something in TO i.e. recipient so that system sends the email.

Here is the workaround,

just include the recipient as your-instance-name@service-now.com and include bcc and check if it works

solution shared here

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

@cp10 

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

Hi @Ankur Bawiskar 

Sorry!!! I am not able to get the changes you are suggesting as I am new to the coding part . could you please let me know what changes needs to be added.

Kindly please help me on this issue.

 

Thanks.