We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

mail script for cc not working

samadam
Mega Sage

I have a mail script to add cc to a notification. The script is getting called as I can see it in the logs and right values. When emails are generated I cannot see that in CC column. How can I fix this? This is a scoped application and both notification and mail script are in the same scope.

1 ACCEPTED SOLUTION

had to add .toString() and it worked

View solution in original post

6 REPLIES 6

Yes, dot walking fields from gliderecord returns a glideelement object not a string which is why it's recommended to use the getValue method of gr to avoid typing issues

Hi @samadam,
I'm trying to implement similar functionality, but even trying your solution hasn't worked. Can you please explain how did you configure your notification - to & cc  - for it to work?
If I add the cc code in my mail script the email record is not created at all in the sys_email table.