Trigger emails to the group members alone from a scheduled job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 11:47 PM
Hi,
I am passing the sys_id of the group as Event parm1, using gs.eventQueue from a scheduled job.
The event is getting triggered and the notifications are sent to the group members and also to the group manager.
How can I stop sending emails to group manager, the email has to be sent to the group members alone.
Thanks!
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 10:55 PM
Hi @neetusingh , @Ankur Bawiskar .
Thanks for the suggesstion.
I want to know why it behaves differently with BR and a Scheduled Script Execution.
I am passing the sys_id of the group through gs.eventQueue method.
When the event got fired from the BR, it excludes the manager and send email to the group members even if the Exclude manager check box was set as false.
But when it get triggered from a Scheduled job, it includes the manager.
it excludes the manager when the Exclude manager check box was set as true.
So want to understand the logic behind it, why does it behaves differently with a BR and a scheduled job.
Thanks!
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2025 08:35 PM
I will have to investigate it further if time permits.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader