How to add "to" recipient in notification via email script. I am able to add "cc" and "bcc" users but not "to" users

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 11:14 PM
How to add "to" recipient in notification via email script. I am able to add "cc" and "bcc" users but not "to" users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 11:22 PM
Hi Ajay,
you cannot set the recipient the same way you set cc and bcc
there are 2 options for recipients based on way you are triggering email notifications
1) if you are triggering email using insert/update then you can include the recipient in who will receive; there you can select the user or group,
2) if you are triggering email using gs.eventQueue('eventName', object, recipient) you can send the list of user sys_ids and email addresses in 3rd parameter
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 11:57 PM
Hi there,
See:
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field