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 V2 How to s...
Power Automate
Suggested Answer

Send Email V2 How to send multiple attachment with dynamic number of file

(2) ShareShare
ReportReport
Posted on by 6
Hi.

I'm having trouble adding multiple attachment using file path to send an email (v2). I try to using custom object to store the Name and ContentBytes, then pass the custom object to the List. But I encountered some error "Cannot convert the literal '%BinaryData%' to the expected type 'Edm.Binary'"
 
this is my custom object
 
I try to hardcode the attachment and success with this list
 
And this is the list I create using custom object
 
The error is 
Cannot convert the literal '%BinaryData%' to the expected type 'Edm.Binary'
 
this look like similar list to me, please anyone, thank you in advance
 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,503 Super User 2026 Season 1 on at
    Your ListAttachments binary data on the second item seems to be missing %-signs around it. BinaryData2 seems to be just text and not a variable.

  • Suggested answer
    CU03100533-0 Profile Picture
    2 on at
    Thank you for reply, that is my test list, but this is the final list I have edit the BinaryData2 as var, but still have the same error, actually the error is in BinaryData, not the BinaryData2, the error is "message": "Unable to read message or attachment content.\r\nclientRequestId: b7db16f1-99e0-4191-bc28-736815c7ba2d,b08b9e67-9a42-449a-a1fa-3688b815f7a5\r\nserviceRequestId: f38c6c6d-aec6-a035-fc17-29ed39e442f2",
        "error": {
          "message": "Unable to read message or attachment content.",
          "code": "RequestBodyRead",
          "originalMessage": "Cannot convert the literal '%BinaryData%' to the expected type 'Edm.Binary'."
        },
        "source": "office365-sea.azconn-sea-001.p.azurewebsites.net"
      },
  • Suggested answer
    eetuRobo Profile Picture
    4,503 Super User 2026 Season 1 on at
    Make sure your BinaryData -variables are refering to variables and not text.
    Like so:


    So no quotation signs around BinaryData -variables:


    Should look like this:


    Send an email (V2) Attachments field is not very responsive and I suggest you clear it and select the variable again. That fixed bad request error for me even when my flows logic correct. 
  • MtryDoc Profile Picture
    55 on at
    Here is how I was taught to get this working.  I am getting my attachments from a SPO List.
     
     
    Here is very good breakdown in video form
     
  • CU02101828-0 Profile Picture
    6 on at
    Thank you all for the reply, this issue was solved by make sure the file name and binary is variable instead of string, big thanks for eetuRobo for the advice. Thanks to for MtryDoc  but I'm using Power Automate Desktop that have a different approach with Cloud one, but the issue is already solved. Thanks all for the reply and have a nice day!

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard