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 multiple Attac...
Power Automate
Answered

Sending multiple Attachements via Mail by pre-using the "Select-Operator"

(0) ShareShare
ReportReport
Posted on by 5

Hello Folks,

 

I am trying to set up a flow which sends an E-mail with multiple attachements. I found some threads which descibes the datapreparation process via Apply-to-each loop. 

 

https://flow.microsoft.com/de-de/blog/multiple-attachments-single-email/

http://saltypc.com/?p=619

 

In my experience the Apply-to-each approach consumes a lot of time. Instead I would like to use the Array-"Select" operator and set the output of this operation as the new attachement input for the "Send an E-Mail" Operation.

 

Sadly this doesn't seem to work for me. I am getting the error that

 -> "Parameter 'Attachment Name' cannot be null or empty.
 
Below you can see a snapshot from the test-input of the step "Send an E-Mail" the Attachements-Input seems for me valid. 
 
[...] okmark:_MailOriginal'></span>\n\n<p class=MsoNormal><span lang=DE style='mso-ansi-language:DE'><o:p>&nbsp;</o:p></span></p>\n\n</div>\n\n</body>\n\n</html>\n","Attachments":[{"Attachment Name":"Test-250724.pdf","Attachment Content":"JVBERi0xLjQKJYCAgIAKMSAwIYWlsZXIKPD [...] MiAwIFIgL0lEIFs8kEDI5NDU4CiUlRU9GDQo="},{"Attachment Name":"Test_Sign.svg","Attachment Content":"PD94bWbj0 [...] DQo8L3N2Zz4="}],"Importance":"Normal","IsHtml":true}}
 
Could you give me an idea which might be wrong here in this approach?
 
Best Regards,
Lukas
Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @GBLukas 

     

    Can you please post a screenshot of the flow?

     

    Can you ensure that the attachments array has the attributes as:

    {

    "Name" : "filename.extension",

    "ContentBytes" : contentbytes

    }

     

    You need to ensure that the attachments array that you are creating has these attributes (Name and ContentBytes as mandatory). 

     

    If you could share a screeshot we might better identify the issue and assist you with this. 

     

    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!

  • LukasBr Profile Picture
    5 on at

    Hi @yashag2255 

     

    I wasnt beware of the fact that the array must have the specific key Names "Name" and "ContentBytes". I changed the Key-Names and now its working like a charme.

     

    Thank you very much!

     

    Best Regards,

    Lukas

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 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard