cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
anne_danko
Level: Powered On

Send email with PDF attachment

Hi all,

I have build a Flow which sends an email ("Send an email" action) to recipients specified on a SharePoint list. I would  like to attach two PDF files to this email. Is there a way to do this similar to Outlook where you simply select "Attach items"?

 

Thanks,

Anne

4 REPLIES 4
Community Support Team
Community Support Team

Re: Send email with PDF attachment

Hi @anne_danko ,

 

Do you want to send an email with attachments from SharePoint list?

 

I have created a flow likes below for your reference.

 

Add the trigger When an item is created.

 

Initialize variable. Name: Test, Type: Array.

 

Get attachments. Note: select ID from the trigger.

 

Add Apply to each, Get attachment content. Note: select ID for Id from trigger, select Id for File identifier from action Get attachment.

 

Within the apply to each, add action Append to array variable.

Name: Test

Value:

 

{

 “ContentBytes”: body('Get_attachment_content').$content

“Name”: DisplayName

}

 

 

Under the Apply to each, add action send an email. Note: click the button to Switch to input entire array of the attachments field, and select variable Test for it.

 

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
anne_danko
Level: Powered On

Re: Send email with PDF attachment

Hi Mabel,

Thanks so much for your reply. Unfortunately, however, my scenario is a little different.

 

I would like to send an email (via Flow) to recipients mentioned in a SharePoint list. To this email, I would like to attach a PDF document which is stored on the SharePoint.

 

Could you assist with this as well?

 

Many thanks,

Anne

Community Support Team
Community Support Team

Re: Send email with PDF attachment

Hi @anne_danko ,

 

How do you want the flow to be triggered?

 

The first scenario could be used if you want to send an email whenever a new item is created.

 

However, if you would like to get all the pdf files stored on the list, please take a try with the following flow.

 

I am using a Condition to check whether the file is a pdf file, as Flow is case sensitive so I have to filter out both .pdf and .PDF.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Seamunkee
Level: Powered On

Re: Send email with PDF attachment

Hi! I have a similar situation where I'm trying to add an attachment to to an email. My scenario is I have a Flow setup with Forms to send an confirmation email to the submitter, I want have an excel spreadsheet attached to that email. The problem I'm having is how to get the excel spreadsheet attached to the email. Do I need to have the excel file stored on sharepoint in order to do this?

 

 

Thanks in advance!

 

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 4 members 4,280 guests
Please welcome our newest community members: