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 / Power Automate Send th...
Power Automate
Unanswered

Power Automate Send the one Email with Multiple Attachments from SharePoint List

(0) ShareShare
ReportReport
Posted on by 67

Hi team,

Hoping you can assist.

The below flow gets items from a SharePoint list and attaches the documents from the SharePoint List entry to an email and sends the email.

The issue I have currently, if there is more than one document (attachment), the flow will only attach one attachment at a time and send one email per attachment. So if there is more than one attachment, the client gets more than one email. I would like the flow to send only the one email and that email includes all that clients’ SharePoint List attachments.

EG. the flow looks in a SharePoint List for clients with outstanding payments. If there are any outstanding payments, the flow attaches all the invoices which are saved in that clients SharePoint List entry, and emails that client.

Please let me know if I need to provide any further clarification.
Please see below, and let me know if you need further screen shots. 

PA-1.png

 

PA-2.png

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    So in this scenario, the "Get Items" should be returning all of the files that you want to attach to a single email, is that correct?

  • joeking Profile Picture
    67 on at

     

    yes, the Get Items and the Condition, is returning the correct files.

    the issue is that the flow sends the files in separate emails, and it doesn't send all the files in the one email.

    EG. if a client has 2 invoices for outstanding payments, instead of attaching the two invoices into the one email, it sends the two files separately in 2 emails. 

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @joeking,

    You need to initialize a variable as an array to save the multi attachments, then append variable to the array.

    Here is a simple demo:

    vqiaqimsft_0-1699584456538.pngvqiaqimsft_1-1699584525065.pngvqiaqimsft_2-1699584568275.png

    {
     "Name": items('Apply_to_each_2')?['DisplayName'],
     "ContentBytes": body('Get_attachment_content')
    }

     

  • joeking Profile Picture
    67 on at

    Thanks so much Qi, I will run some tests and confirm back. 
    @v-qiaqi-msft 

  • joeking Profile Picture
    67 on at

    Thanks @v-qiaqi-msft  however the flow is still sending one attachment per email. Please see below;

    PA-01.png

    PA-02.png

    PA-03.png



    Any suggestions? Have I missed something?


  • joeking Profile Picture
    67 on at

    also, if I move the outlook module from the apply to each, the flows sends multiple email attachments, but these attachments include other SharePoint List/clients documents.  

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard