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 / Multi attachment email...
Power Automate
Answered

Multi attachment email - Error

(1) ShareShare
ReportReport
Posted on by

Hi, 

I tried following this Flow: https://preview.flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

And also had a look at a couple of other discussions in this forum. 

Yet, when I try to replicate things, I get an error saying that 

{
"status": 400,
  "message": "Parameter 'Attachment Content' cannot be null or empty.\r\nclientRequestId: 2960f4c2-d0ff-439d-ab24-2baa52760795",
  "source": "office365-we.azconn-we.p.azurewebsites.net"
}
 
Attached are the files that I stored on a SharePoint document library and that I want to add all as attachment.
The files are XML and PDF documents.
f1.png
 
 
My flow looks as follows:
 
f2.pngf3.png
 
 
I even put an additional compose step before sending the email just to check that the content is not empty.
 
What is going wrong here?
Any help would be appreciated.
 
Many thanks,
 
Ludwig
 
Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @lreinhard7 

    In your append to variable array action, try removing the double quotes around the filename with extension.  Please let me know if that works for you.

     

  • Ludwig Reinhard Profile Picture
    on at

    Hello Scott, 

    Just tested that but still get the same 400 error message...

    Best regards, 

    Ludwig

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @lreinhard7 

     

    In place of Content you should have ContentBytes. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @lreinhard7 

     

    replace "Content" with "ContentBytes"

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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

    @lreinhard7 

    The following worked for me:

    ContentBytes.jpg

    Change Content to ContentBytes.

     

  • Ludwig Reinhard Profile Picture
    on at

    Hi, 

    Many thanks for the hint with the ContentByte term this kind of resolved one error. 

    Yet, now I receive the error:

    status": 400,
      "message": "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'.\r\nclientRequestId: 4b1e9ced-1d72-4232-856a-3bf7d8e95e36",
      "source": "office365-we.azconn-we.p.azurewebsites.net"
    This is strange because I entered the to, subject and body fields...
    Interesting 😞
    Best regards,
    Ludwig
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @lreinhard7 

     

    have you used ContentByte or ContentBytes

     

    the s is required

     

    next try using expression  

     

    "ContentBytes": base64(filecontentdynamiccontent)

     

     

    the bold part is expression

     

     

  • Ludwig Reinhard Profile Picture
    on at

    Hello RezaDorrani

    That is amazing. The base64 expression did the job!Smiley Happy

    Many thanks for that. 

    Best regards, 

    Ludwig

  • Ludwig Reinhard Profile Picture
    on at

    Hi, 

    After making some changes to my flow to make it run fast I run into another issue where I need some help. 

    The problem that I currently have is that either no attachment is created or that an attachment file is created that I cannot open. 

    Here are some of the things I tested:

    Option 1: No attachment created

    Option1NothingAttached.png

    Option 2: Same as Option 1

    Option2NothingAttached.png

     

    Option 3: Error message that the attachment name cannot be null

    Option3_ErrorAttachmentNameCannotBeNullOrEmpty.png

     

    Option 4: Error unable to read message or attachment

    Option4_ErrorUnableToReadMessageOrAttachmentContent.png

     

     

    Option 5: Attachment file created but it cannot be opened 

    Option5_AttachmentCreatedButOnlyAsSingleFilethatCannotBeopened.png

     

     

    Any help would be highly appreciated. 

     

    Many thanks, 

    Ludwig

     

     

     

     

     

     

     

     

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @lreinhard7 

     

    You can refer to the below screenshot. You need to have the Name while creating the array itself. And do not create that again in the send email action

    er4.PNG

    The display name is because my attachments are from sharepoint. You can have the custom filename there and ensure you have the right extension along with that. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard