- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2024 05:53 AM
I am not sure why ServiceNow doesn't have an option to add users to the CC instead of scripting it out but i need help
I have a List Collector on my form where users can add more than one person to the CC of the email that gets sent out
what i am having issues is, to get all the user added to the CC. i know how to add one using the email scripts using a Single line text variable but i need to now how to script it for a List collector.
email.addAddress("cc", current.variables.ccemail.email, ccemail);
i have look at options like putting it into an Array and using a For loop in the script but it doesnt seem to work
Please Help..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 06:34 AM
i got the script to work now with this alternation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:23 AM
tried to add it to the logs but nothing is appearing in it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:29 AM
i tried a simple tempate.print and getting this results
email: undefined name: undefined
email: undefined name: undefined
email: undefined name: undefined
however when i do current.variables.cc_email it displays their actual names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:55 AM
what is the code you are using in the template.print and what is the code you are using in the CC mail script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:58 AM
i have re-worked the code and now showing the email address along with their names when printing it out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 07:09 AM
Have you checked if they are active users? And if they have their notifications turned on?
Try adding +'' after each of grUsers.email.getDisplayValue(), grUsers.name.getDisplayValue(), because it might return an object.