Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Email Client Template Attachments

NaveenK08632274
Tera Contributor

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.

6 REPLIES 6

Ankur Bawiskar
Tera Patron

@NaveenK08632274 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

NaveenK08632274
Tera Contributor
Although the attachment is added to the Email Client Template and the template is used on the Incident table, the attachment does not appear when composing the email from the Incident record. Only the email body content from the template is shown

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).

 

Screenshot 2026-04-30 at 7.08.07 PM.png

 

If you find this helpful, please consider marking it as Helpful or Accepting it as the Solution.

Regards,
Harish

@HarishKumar6668 

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?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader