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 08:51 AM
Just to be sure (because I notice in my post above that it has changed from what I pasted) it needs to be the word javascript followed by : and then the string - gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">", assigned_to"
Seems it doesn't like it when pasted like that into the post.
javascript: gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">", assigned_to
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:53 AM - edited 01-08-2024 08:54 AM
Of course got that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 08:13 AM
try this
javascript: gs.getUser().getEmail() + ',' + current.assigned_to
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 08:33 AM - edited 01-08-2024 08:34 AM
Its only populating logged in user in workspace and it's empty in itil view. It's not working with just this javascript:gs.getUser().getEmail() anywhere
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 07:05 PM
is it working fine in native?
Are you in scoped app?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader