Limit number of emails that could be sent maximum per single event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2019 12:24 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2019 12:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 04:20 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2022 08:39 AM
Hello Everyone,
Is there a solution for this thread?
Regards,
Mihir