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/
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
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
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!
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492