Add attachment

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 12:10 PM - edited 08-02-2025 01:56 PM
Hi,
I am using send email action on my flow and its working fine. But I want to include the attachment on the submitted record to the email. How can I do it.
Thanks,
S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 12:42 PM
Hi @sparkles
Configure notification to include the attachment and use this notification under " Send Notification" instead of "Send Email"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 01:55 PM
I need to use "send email" action. I am using " Make a decision" logic and getting the recipient email from it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 07:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 07:25 PM
Hi @sparkles ,
Good day !!
If you use Flow Designer “Send Email” action, be aware that it does not support including attachments from records out-of-the-box. To achieve this, please follow these steps:
Get the attachment list:
Use “Get Attachments on Record” on your triggering record (Any record). This outputs a list of attachments to work with.
Send the email: Add a “Send Email” action, dynamically retrieving recipients. In the Data pill output, grab the “Email Record” object (the sys_email sys_id).
** Copy each attachment to the email record:
Create a custom Flow Action (e.g. Copy Attachment) whose script uses the GlideSysAttachment API to copy files.
var gsa = new GlideSysAttachment();
var src=new GlideRecord(inputs.srcTable);
src.get(inputs.srcTableSysId);
var att = gsa.get(inputs.attachmentSysId);
gsa.copy(src, 'sys_email', inputs.emailRecSysId, gsa.getBytes(att));
Give it a try and let me know..
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/