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 / 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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard