- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
When you create an email from the case form, you can compose it in a new tab.
I want to implement a mechanism where, if you attach a file in that tab and its size exceeds 18MB, a popup appears.
How can these be achieved?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you can use before insert BR on sys_attachment table and block the insert but you can't show the info message.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @hkriwk1 ,
By attachment property you can limit the attachment size. Add a Client Script tied to the email compose UI or use UI Script + onAttach/attachment events to detect newly added attachments and sum their sizes, then show a modal/alert if the total crosses get the value from system property.
For more detail
Please refer the below KB Articles
Email body/attachment size limit system properties
This is Attachment limit properties &
Limit the maximum number of attachment in email
Thanks,
Bhimashankar H
-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @hkriwk1 ,
I hope you saw my reply.
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. It will help future readers as well having similar kind of questions and close the thread.
Thanks,
Bhimashankar H