- 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 10:29 AM
Hi,
have you tried with symply assignment_group.name or assignment_group.email? Dotwalk is supported.
This should also work:
javascript: current.assignment_group.email;
Kind regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2014 12:11 PM
Dan,
Thank you for the response. When I tried assignment_group.name it did populate with name as I am wanting. The problem I ran into was it did not recognize it when sending. When I looked in the logs I had this entry:
"Email contains no recipients, send ignored"
The other suggestions did not work as well. The field stays blank.
Thanks,
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2014 12:16 PM
Hi again,
There is a mail adress in the assignment_group.email field?
I just tried this out and its working for me with both "assignment_group.email" and "javascript: current.assignment_group.email;". Strange!
Regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2014 12:23 PM
Sorry, I should have specified that we do not have the email field populated within the groups. If you send to the sys_id that gets populated into the To: field it works fine. It seems as if it then sends emails to each address associated with members of that group. Even if I could just get the group member's emails to show instead of the id I believe that would work as well. The goal is to have that field populated with something other than just the group sys_id.
Thanks,
Will