Trigger emails to the group members alone from a scheduled job

Ramkumar Thanga
Mega Sage

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

11 REPLIES 11

Ramkumar Thanga
Mega Sage

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

@Ramkumar Thanga 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader