Adding CC emails from mail script not working. Copied field on email log has a single comma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2024 12:32 PM - edited ‎05-01-2024 08:11 AM
Hello,
I am trying to add some emails to the CC field in a notification email from a mail script. I've tried everything I can find online and cannot get it to work. When I check the email logs, the "Copied" field just has a single comma, nothing else.
I know for sure that the queries are returning the intended information. I tested it with gs.log. I also made sure that this is the right mail script being called in the notification. I tried doing .getValue, .getDisplayValues, etc. I have also tried just adding a test email, email.addAddress("cc", "test@test.com", "test"); and it still does not work.
Any ideas? Thanks in advanced.