- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2014 10:26 AM
I have enabled the email function from within a Problem. I currently have an email client template created that should place the "assignment_group" into the To: field. The issue I am seeing is it doesn't populate with the actual group name but instead uses the id associated. If I type in a group/user name the auto-populate feature works and it places the actual name in the field.
Is there a way for me to be able to populate the To: field with the group name instead of id? I am worried about it being confusing when someone wants to send an email and it comes up only showing the id instead of the group name.
Thanks,
Will
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2014 03:40 PM
I see,
You could create a script include that makes a GlideRecord query on the sys_user_grmember table and returns a comma seperated list of user.email for you.
You would then be able to call your script include function from the to-field in the template with something like this:
javascript: yourScriptIncludeFunction(current.assignment_group);
Kind regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2014 03:40 PM
I see,
You could create a script include that makes a GlideRecord query on the sys_user_grmember table and returns a comma seperated list of user.email for you.
You would then be able to call your script include function from the to-field in the template with something like this:
javascript: yourScriptIncludeFunction(current.assignment_group);
Kind regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2014 06:47 AM
This worked! Thanks!
Will