Limit number of emails that could be sent maximum per single event.

Rajiv Kumar Jh1
Giga Contributor

 

 

Hello Experts,

 

Limit number of emails that could be sent maximum per single event.

When more than 200 emails are getting into sys_email due to the same action/event, all those emails must be put on hold and ServiceNow admin team should be notified.

Background of this requirement-Once reporting/dashboard changed , this change was notified to users who are not supposed to receive the email

If its doable then what would be solution and what changes may come if we design any business rule or schedule to achieve this requirement

Regards,

Rajiv

 

3 REPLIES 3

Chalan B L
Giga Guru

Hello Raj,

 

There is an property (sys_properties) - glide.email.smtp.max_recipients where you can limit the number of users

 

Also, to your requirement write an BR in sys_email_log to using a dot walking to sys_email table check the number count of recipients in both [to and CC], have proper query [type is sent-ready], notification type is SMTP {have a proper query here}.

 

Note: writing a logic in any logic in logs table is not recommended even though if you wanted set up a proper queries and then do it. would recommend to do first in PDI

 

Mark answer as correct and helpful if it helped ..!!

 

 

Regards,

Chalan

Rajiv Kumar Jh1
Giga Contributor

Hello Chalan,

Appreciate your help here.

Is there way we can identify how many events/notification get trigger in to mass.

Create incident, update incidents etc are example.

Regards,

 

Raj

Mihir2
Tera Contributor

Hello Everyone,

Is there a solution for this thread?

Regards,
Mihir