Email Client Template Attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12 hours ago
What is the process to send an email with attachments using Email Client Templates, ensuring that the attachments are visible while composing the email?
The attachments are configured in the Email Client Template so that when the template is selected in an Incident, the attachments are automatically included and displayed in the email composition window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12 hours ago
attachments from record don't show automatically when you use email client template in native
See this link for approach
Add Attachments to the Email Client Template automatically
also check this
Copy attachments to Email Client Template (...)
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Hi @NaveenK08632274,
When using Workspace, each time you compose an email, a draft record (sys_email_draft) is created automatically.
To ensure an attachment is added to every draft, you can create a Before Insert Business Rule on the Email Draft (sys_email_draft) table. This Business Rule can insert a corresponding record into the Email Draft Attachment (sys_email_draft_attachment) table whenever a draft is created.
Condition:
Set the Business Rule trigger condition as:
- Table = Customer Case (or adjust based on your use case)
Sample Script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var gr=new GlideRecord('sys_email_draft_attachment');
gr.initialize();
gr.email_draft=current.getUniqueValue();
gr.content_disposition='attachment';
gr.attachment='db52b786c3cc43109ffd7375e4013152';
gr.insert();
})(current, previous);With this setup, whenever a user clicks to compose an email, the attachment will be automatically appended to the draft. Users will be able to see the attachment already added to the email draft record (as shown in the screenshot).
If you find this helpful, please consider marking it as Helpful or Accepting it as the Solution.
Regards,
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
this won't work
This will copy file to each record and won't pick the files from current record
Did you test this part?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
