Send attachment in email

jkelvynsant
Tera Contributor

Hi, I have an attachment field in the record producer. After closing the record, an email will be sent with the attachment as a link. I'm trying to do this using the "Send Email" action in the flow. How can I do this?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@jkelvynsant 

-> you cannot include attachment when you use "Send Email" flow action.

-> Instead you can use "Send Notification" flow action and create a separate notification and there you use "Include attachment" checkbox. Then select this Notification in the "Send Notification" flow action.

Also are you copying that file from attachment type variable to Target record of record producer?

If yes then you are good to follow above approach

If not then check this link where I shared solution on how to do that and then proceed with the next steps

Copying Attachments from a Record Producer's Attachment Variable to a Target Record in ServiceNow 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

3 REPLIES 3

kaushal_snow
Mega Sage

Hi @jkelvynsant ,

 

The standard oob Send Email action in Flow Designer does not allow you to directly attach files from a record. Instead, it sends links or references, which may not meet your requirements.

Instead, you can create a custom Flow action that copies the attachment from the Record Producer (or the resulting record) onto the email record, allowing the email to include the actual attachment. Once this custom action is in place, you can use it prior to sending your email.

 

Note: There is no oob feature avail as such

 

Check this out: https://www.servicenow.com/community/itom-forum/using-flow-designer-add-attachment-to-send-email-act...

 

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Rafael Batistot
Kilo Patron

Hi @jkelvynsant 

 

Kindly shared the link that sent via email? 

When someone uploads an attachment in a Record Producer, the file is stored in the sys_attachment table, and the table_sys_id points to the record where it was attached (the target record created by the producer).

 

Ankur Bawiskar
Tera Patron
Tera Patron

@jkelvynsant 

-> you cannot include attachment when you use "Send Email" flow action.

-> Instead you can use "Send Notification" flow action and create a separate notification and there you use "Include attachment" checkbox. Then select this Notification in the "Send Notification" flow action.

Also are you copying that file from attachment type variable to Target record of record producer?

If yes then you are good to follow above approach

If not then check this link where I shared solution on how to do that and then proceed with the next steps

Copying Attachments from a Record Producer's Attachment Variable to a Target Record in ServiceNow 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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