How to get recipient list populated in to 'TO' section of email client template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2024 01:12 AM
Hello
We've developed a UI action called 'Compose.' Clicking on it displays an email client template body. Currently, our script populates recipients, but with a large number of recipients, we're experiencing a delay of about 2-3 minutes due to a 'While loop.' Are there any alternative solutions for this issue?
Please find below scripts:
Script Include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2024 02:16 AM
I'm wondering about your delay of 2-3 minutes. Therefore my question: How many users are we talking about here?
Please be aware of restrictions regarding the number of possible recipients in the fields TO, CC & BCC. You cannot add thousands of email addresses there! That's the reason why the feature "Targeted Communications" (you are reading the recipients from its table!) works differently.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2024 02:46 AM
Hello @Maik Skoddow ,
Thank you for the response.
Our recipient list contains 20,000+ users records and we are trying to populate these users into the 'TO' section of the email client template. While populating these users into the 'TO' section it is taking 2-3 minutes.
If you have any document related to restrictions of recipients list, then please provide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2024 02:57 AM
I couldn't find so fast any suitable RfC but most of the Email Clients restrict maximum number of addresses to something like 500 (Outlook for example).
ServiceNow has a restriction of 1000 (see https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0748535 )
20.000 email addresses is definitely too much and will be rejected from any email server!
Have you also thought about what a security breach you are committing if thousands of e-mail recipients can see the e-mail addresses of thousands of other users?
Again: There is a reason why ServiceNow introduced the "Targeted Communications" feature. So use it as intended and you will have no problems, as ServiceNow will create individual emails for each and every recipient.
Maik
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2024 03:21 AM - edited 01-02-2024 02:07 AM
Hello @Maik Skoddow ,
Thank you the response!
In the Communication task table i have created Email client configuration i.e 'Communication Task - Email Client Configuration' using this now Recipient list name is populated in 'TO' section of email client template. But, when I received an email recipients field is displayed empty.
Please find the below screenshots:
1. email client configuration:
2. email client template:
3. email
Is this functionality only works for the Incident alert task table or we can use another table also for the same. For e.g 'Communication task' table