web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Additional file to mul...
Power Automate
Answered

Additional file to multi attachement email

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have a flow which pulls its data from a SharePoint list and sends an email. This includes a unknown number of attachments, which is achieved as outlined in https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/  . This all works great.

 

Now i have been asked to create a PDF document containing the data from the list and include this in the email as an attachment as well. I have got to the point where the document is created and sitting in a OneDrive location.

 

However i am struggling to append this new document to my array of attachments to include in the email.

 

Here is the way the list attachments are being added to the array,

Tjeremiah_0-1606300282323.png

 

And here is how i am attempting to add the document which sits in OneDrive,

Tjeremiah_1-1606300401813.png

The "Name": is coming from -Get file metadata- and the "ContentBytes": is coming from -Get file content.

 

When this flow runs, i get the below error on the send email card. This only happens when i try to append the new document to the array.

Tjeremiah_2-1606300541645.png

 

Lots of surfing this and other forums hasn't enlightened me, so thanks in advance if you can help!!

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Tjeremiah 

     

    Try the below expression for the content bytes of your Append to array variable 6 step.

     

    body('Get_file_content').$content

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard