- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 05:51 AM
Hi @Jo_o Luis ,
Write a mail script and you can use the below script to print recipient_groups.
template.print(email_action.recipient_groups.getDisplayValue());
Please mark my answer helpful if it helped you.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:27 AM - edited 10-20-2023 08:36 AM
@Jo_o Luis
We can get it by using email script.
Email script :
in Email Content:
${mail_script:emailScriptName}
Please mark my answer as correct based on Impact.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 08:29 AM
@Jo_o Luis Instead of mapping the variable using Message HTML, you need to use a mail script to fetch the name of group.
Here is the link to mail script documentation https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/script/server-scripting/concept/c_...
Inside the email script you can user the following code.
template.print('Dear '+email_action.recipient_groups.getDisplayValue());
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:14 AM
I´m trying to get the 'recipient_groups' value on the message html as you can see on the screenshots

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 08:29 AM
@Jo_o Luis Instead of mapping the variable using Message HTML, you need to use a mail script to fetch the name of group.
Here is the link to mail script documentation https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/script/server-scripting/concept/c_...
Inside the email script you can user the following code.
template.print('Dear '+email_action.recipient_groups.getDisplayValue());
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:27 AM - edited 10-20-2023 08:36 AM
@Jo_o Luis
We can get it by using email script.
Email script :
in Email Content:
${mail_script:emailScriptName}
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 08:41 AM
@Jo_o Luis
Hope i have answered your question , If yes, Please mark my answer as correct and close this tread.
Thank you