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 / Send Email - Attachmen...
Power Automate
Answered

Send Email - Attachments blank or won't open - Multiple Attachments

(0) ShareShare
ReportReport
Posted on by 53
Hi,
 
i have Flow when new Mail arrives it should get the attachments and send them with send an email action.
 
I have multiple attachments, so i use Array Variable to store them.
 
 
I read a lot about the "" around ContentBytes in Array Variable are problematic, but i don't have those.
 
I tried these scenarios:
 
{
  "Name": "@{outputs('Get_Attachment_(V2)')?['body/name']}",
  "ContentBytes": @{outputs('Get_Attachment_(V2)')?['body/contentBytes']}
}
-> can't open file

{
  "Name": "@{outputs('Get_Attachment_(V2)')?['body/name']}",
  "ContentBytes": "@{outputs('Get_Attachment_(V2)')?['body/contentBytes']}"
}
-> can open file, but it is blank

{
  "Name": @{outputs('Get_Attachment_(V2)')?['body/name']},
  "ContentBytes": @{outputs('Get_Attachment_(V2)')?['body/contentBytes']}
}
-> can't open file
 
 
I add the attachment in the send email action like this:
Code View:
 
 
What am i missing?
 
Thanks for your help
Categories:
I have the same question (0)
  • Verified answer
    stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    @LuITS Hi,
     
    You have to use base64ToBinary() function, otherwise outlook can not open the attachment files.
    below is for your reference.
    code view part:
    "value": {
          "name": "@items('Apply_to_each')?['name']",
          "ContentBytes": "@base64ToBinary(outputs('Get_Attachment_(V2)')?['body/contentBytes'])"
        }
     
    screen shot.
     
  • Suggested answer
    Tomac Profile Picture
    4,105 Moderator on at
    The attachments are coming out of the Get Attachments V2 action as base64, you'll need to convert them to Binary to make it work. In your array, use this for the ContentBytes section:
    base64ToBinary(outputs('Get_Attachment_(V2)')?['body/contentBytes'])
     
    The reason this is different than the tutorials is because those are using the original Get Attachments action, which encoded the files as binary from the beginning. This was changed in the V2 action.
     
    If this comment resolved your issue, please mark it as the answer to help future users searching for this problem.
     
    EDIT: Ah, stampcoin beat me to it.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard