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 / Sending an email with ...
Power Automate
Suggested Answer

Sending an email with multiple attachments

(0) ShareShare
ReportReport
Posted on by
Hello community,
I would like to ask a question.
 
I have a flow which triggers when a new email arrived with attachments.
 
For each attachment, it is creating a file in OneDrive, then running an excel script on top of it.
Script returns either true or false.
 
If script return true, those files should be send as attachment by email to different email adress.
 
I am able to do it without any issue, but in the current scenario, it is sending seperate email for each attachment.
 
What I want to achieve is, I want to check for all attachments, and then send in one email which returns true. (let's say 4 of them returns true, I want to send all of them in one email.)
 
To be able to achieve this, I tried to create array, however it did not work as expected.
 
Could you please advise me, how can I proceed and achieve this?
 
I am also open for any feedback about any possible improvement for existing flow.
 
 
Thank you!
 
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Your email action should be placed outside of the foreach loop. Use the loop to populate the attachment array variable. You can then reference the array variable outside of the loop, which will help prevent sending multiple emails.

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 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard