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 / Split attachments from...
Power Automate
Unanswered

Split attachments from sharepoint item to different emails with power automate

(0) ShareShare
ReportReport
Posted on by 86

Hi all, 

 

With my power automate flow i'm getting the attachments when a new item is created in my sharepoint list but I need to send an email for each attachment found. Actually this is how is working my flow right now, the issue i'm facing is that my flow is sending the first email with only one attachment but the second one with both attachments in one mail. Can someone help me finding the issue please?

 

silviavg_0-1659381727409.png

- First mail:

silviavg_1-1659381754203.png

- Second mail:

silviavg_2-1659381780551.png

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,793 Super User 2025 Season 2 on at

    Hi @silviavg ,

     

    Try taking the Send an Email action out of the Apply to Each loop:

    silviavg_0-1659381727409.png

     


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

  • ScottShearer Profile Picture
    25,277 Most Valuable Professional on at

    @silviavg 

    The reason for the behavior is that you are not clearing out the array between loops.  So, the first email goes with a single file.  Then you loop and add another file to the array, so both are sent.

    If you want a single file to go with each email, you don't need the array.  Just reference the attachment name and attachment content in the email directly.

    Let me know if you need more help.

    image.png

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard