Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adding CC emails from mail script not working. Copied field on email log has a single comma.

cfraser
Tera Contributor

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.

cfraser_0-1714570151516.png

 

 

 

cfraser_1-1714505517127.png

 

0 REPLIES 0