Email Client Template not populating CC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 04:24 AM - edited 01-08-2024 04:27 AM
There is a requirement to create email client template and have the cc populated with current logged in user and "assigned to" of the form. But when we put it together as javascript : gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">",assigned_to in the cc field its not populating anything. What are the other ways to achieve the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 05:58 AM - edited 01-08-2024 06:51 AM
Hi @Shruthika V1,
Take a look at the below articles. This should provide you with the solution required.
To help others looking for a similar solution (or for one-to-one direct help), please mark this response as correct and helpful.
Thanks,
Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 08:11 AM
It needs to be populated on Cc and it should have both assigned to and logged in user. When we input just assigned to or just logged in user it works. The combination is not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 06:54 AM - edited 01-08-2024 06:55 AM
So this definitely works for me:
javascript: gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">" ,assigned_to
One caveat that might be causing the issue you are seeing (nothing populating the Cc field) is that the system will not allow duplicates in the To, Cc and Bcc fields. So if the same value (whatever assigned_to, or gs.gs.getUser().getEmail resolves to) is in the To field then you won't see that same value show up in the Cc field.
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 08:09 AM - edited 01-08-2024 08:34 AM
same user is not used in to and bcc.