cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Re: Email Attachments in Flow

Ah, you might need to wrap the whole thing in quotes since it's expecting a string. eg. "InvoiceNumber.pdf".

 

As for the size of the document - how many documents are attached in that Sharepoint item? If it's a couple, since you are naming them all the same thing it might be trying to merge them in to one, hence the larger file size.

Highlighted
Regular Visitor

Re: Email Attachments in Flow

Using the quotes round the entie string, I got it to come through as a PDF!!

Capture.PNG

 

 

 

 

 

 

 

 

But now I cannot open it...

Capture 2.PNG

 

 

 

 

 

 

 

Any ideas on how to fix? I really appreciate the help

Highlighted
Frequent Visitor

Re: Email Attachments in Flow

How many attachments are in the SP item?

Also, you may as well try and surround the content in quotes as well.

Highlighted
Regular Visitor

Re: Email Attachments in Flow

I realized I haven't answered your question for the last few posts. I am only attempting to upload and attach one document in the SP list.

 

Just tried to wrap the content in quotes as well and received the same damaged file note from the Adobe Reader.

Capture 3.PNG

Highlighted
Frequent Visitor

Re: Email Attachments in Flow

Hm, I'm assuming you've tested this, but can you open the attachment from SharePoint just fine?

Highlighted
Regular Visitor

Re: Email Attachments in Flow

Yes, I can open it. It opens the PDF in the web browser that I'm in rather than in Adobe Document Reader, but I can view it no problem.

 

In fact, in my flow I've managed to successfully set up a hyperlink to open the PDF in this manner, but the department that I am sending the attachment to is requiring an actual attachment.

Highlighted
Frequent Visitor

Re: Email Attachments in Flow

I think I'm out of ideas unfortunatly. Are the email attachment and SP attachment the same size?

Highlighted
Regular Visitor

Re: Email Attachments in Flow

Email attachment is around 25% bigger than the SP attachment.

Highlighted
Frequent Visitor

Re: Email Attachments in Flow

Hmm, something is going on there then, it's clearly not getting the right attachment, or somehow the content is off.

Maybe test using the current name of the document? This is mine for reference:

 

Capture.PNG

Actual attachment values are:

{
  "Name": @{items('Loop_Through_Attachments')?['DisplayName']},
  "ContentBytes": @{body('Get_attachment_content')?['$content']}
}

Maybe post what you have in there as well?

Frequent Visitor

Re: Email Attachments in Flow

Hello, is there a way to attach multiple files to a send email (the attachments are in side the trigger which is "when i send an email with high importance") without the share points options?

 

i cannot do this and i'm stuck with a flow

 

thank you

Highlighted
Helper I
Helper I

Re: Email Attachments in Flow

is it possible to add multiple different attachments? 

One created with the append to array option. The other attachements are made in the flow with an create and get option

 

ics.PNG

 

I tried to make a second array with the created attachement and add it to email but that doesnt work.

 

attachments.PNG

any other options?

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (7,670)