- 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 05:24 AM
Hello @Jo_o Luis,
You will have to Create an Email script:-
- Glide to sys_user_group table
- add query to filter that group
- then you will get the exact group
Include this Email Script in you Notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 06:40 AM
Can you give me an example?
- 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 06:43 AM
@Jo_o Luis Could you please share more details on your question. Are you trying to populate a group on the Groups field on notification?