Skip to content

Conversation

@dvn-lazywinner
Copy link
Contributor

@dvn-lazywinner dvn-lazywinner commented Oct 7, 2025

Optimised query added to "[cc all group members.js]" Email Script under Integration > Mail Scripts.
It will now pull all active users of the group


This mail script can be used to CC all members of a group in the current record context.

Use case:
CC all members of the assignment group for the current record.
CC all active members of the assignment group for the current record.

Solution:
Create the mail script as mentioned in cc all group members.js file and then call the mail script in you email notification using ${mail_script: your mail script name} in the notification body
Copilot menu

@ravichandra1998g ravichandra1998g self-assigned this Oct 7, 2025
Copy link
Contributor

@ravichandra1998g ravichandra1998g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @dvn-lazywinner

Please add a descriptive title to this PR.

Copy link
Contributor

@ravichandra1998g ravichandra1998g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your submission.

You can check existing code snippets for reference which has similar codes (under #1631) and use cases already in the repo.

As a reminder, please note:

Quality Over Quantity: Low-effort will be marked accordingly. Expanded Snippets: Code snippets reused from the ServiceNow Documentation or API References are acceptable only if they are expanded in a meaningful way (e.g., with additional context, documentation, or variations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants