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 / Send email with multip...
Power Automate
Answered

Send email with multiple attachments

(0) ShareShare
ReportReport
Posted on by 24

Hi,

 

I have a sharepoint folder that will receive two files.  Each file I would like to send in an email.  Screenshots are below, I am getting the error:


"The execution of template action 'Apply_to_each" failed: the result of the evaluation of "foreach" expression '@triggerOutputs()?['body'] is of type 'Object'. The result must be a valid array."

 

The outcome that I require is one run of the flow for both attachments and then added as an attachment to an email.

 

Screenshots below, thanks for your time in advance.

 

screen 1.pngscreen 2.pngscreen 3.png

Categories:
I have the same question (0)
  • Verified answer
    manuelstgomes Profile Picture
    6,625 on at

    Hi @Jonnyphoto 

     

    The error is indicating that you don't have an "Array" in the "Apply to each," and it's true because you're passing the "File Content" that is not an array. 

     

    I found a tutorial on how you can add multiple attachments to an email. There are some steps for me to describe here.

    https://www.tachytelic.net/2020/09/power-automate-add-multiple-attachments-approval-email/

     

    The tutorial describes an approval Flow, but the concert is the same.

     

    Can you please check if and let me know if you have any questions?

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

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
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard