The CreatorCon Call for Content is officially open! Get started here.

Email from within a Problem - Issues with client template

keygw
Tera Guru

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

1 ACCEPTED SOLUTION

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


View solution in original post

6 REPLIES 6

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


This worked! Thanks!



Will