How to send Email recipient's in BCC for Event Parm 1 & 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 09:39 PM
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:
Scheduled Script Execution:
Email Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2025 11:49 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2025 04:55 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2025 07:57 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2025 03:23 AM
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.