Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
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
  • LukasBr Profile Picture
    5 on at
    Re: Sending multiple Attachements via Mail by pre-using the "Select-Operator"

    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

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Sending multiple Attachements via Mail by pre-using the "Select-Operator"

    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!

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492