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 email with mul...
Power Automate
Answered

Sending email with multiple attachments from Sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hoping someone can help, I have created a form in PowerApps which creates a new item in a Sharepoint list when the user submits the form. The form allows the user to attach multiple attachments for which the SharePoint list is updated with the attachments. When an item is created, an approval process is initiated using a Flow where an email is sent to the approver. The problem I am facing is that the email only includes one attachment even though there is more than one attachment.   

 

 
Categories:
  • Verified answer
    Jay-Encodian Profile Picture
    2,920 on at

    Hi @Anonymous 

    You'll need to retrieve each attachment from the list SP list item, build a JSON array (string variable) containing the attachments.... and then add string variable to the attachments property on the send email action.

    This article will have you covered: https://preview.flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

    HTH

    Jay

    -------------------------------------------------------------------------

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @Anonymous 

     

     

    Just like @Jay-Encodian suggested that should do the trick.

    Please let us know if you are stuck on anything.

     

    Kind regards

     

     

    Tom

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Jay,

     

    Thank you for your suggestion, however, it doesn't seem to work in my situation. I have followed the instructions from the article to the T but no attachments are included in the email, despite there being attachments included in the list item.

     

    I tried a similar approach previously using "Get Attachment" and "Get Attachment Content" but not "Initialize array". Though it did include one attachment with the email, when there were multiple attachments, it only included one.

     

    Any suggestions as to where I've gone wrong?

     

    Many Thanks

  • Jay-Encodian Profile Picture
    2,920 on at

    Hi @Anonymous 

    Can you please post some screen shots of your Flow configuration please... all elements

    Thanks Jay

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @Anonymous 

     

     

    Could you please share a screenshot of your Flow and the result you got with your one attachment?

     

     

    Kind regards

     

    Tom

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is the flow that works successfully with one attachment

    Single attachment 1.pngSingle attachment 2.png

     

    Single attachment 3.png

     

    And this is the flow for multiple attachments

     

    Multi attachment 1.pngMulti attachment 2.pngMulti attachment 3.png

     

    I attempted to run the flow for multi attachments again and now receive the following error message which I don't quite understand as all necessary fields have been provided.

     

    Multi error.png

  • Jay-Encodian Profile Picture
    2,920 on at

    Hey @Anonymous 

    The error message is stating that you need to provide all the input parameters for the email action: Subject, Body and Actions.

    Your screen shot shows that the 'Body' property is empty:

     
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Jay,

     

    The first flow which worked for a single attachment didn't require me to input parameters in those fields so assumed it wasn't compulsory. Anyhow, I did input parameters in the multi attachment but still get the same error message.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Just to put closure to this issue, I've managed to resolve the problem. 

     

    The enable the flow to include multiple attachments to the email, under the 'Append to array variable' - 'value', you need to change the 'contentBytes' to 

     

    "ContentBytes": "@body('Get_attachment_content').$content"
     
    Thanks for your help.
  • JFred131 Profile Picture
    10 on at

    Not sure where to post this since the general topic has been answered so many times.  Reference the article, I did exactly as it said, but I now receive this strange error:   

    No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'.
    clientRequestId: df93265b-9a4f-419c-817e-04aa9e8fb308

     

    The input parameters are provided correctly.  The flow works fine when the attachments array isn't added to the email, the output even looks correct.  But as soon as I place the array variable in the attachments, that's what I get.  The flow will also work fine with a single attachment rather than the array.  I've tried using a variable expression, composing the array first, inputting it just about every way I can think of. Any help would be much appreciated.

    Screenshot 2023-05-19 155313.png
    image 10sp.PNG
    Image 11sp.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard