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

Notifications

Announcements

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

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,928 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 185 Super User 2025 Season 2

Last 30 days Overall leaderboard