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 Apps / Power Automate - Unabl...
Power Apps
Answered

Power Automate - Unable to attach array of attachments to approval flow (Dataverse)

(0) ShareShare
ReportReport
Posted on by 7

Hello,

 

We have a flow that reads a dataverse table (Notes) to pull the attachments into an array, and then attaches to an email.

 

When we do this and use the outlook (Send an email (v2)) connector, it works perfectly.

but when we try to use the attachment array in the Create an Approval step, we get the following error:

 

{
  "error": {
    "code": "InvalidRequestContent",
    "message": "The request content was invalid and could not be deserialized: 'Could not find member 'ContentBytes' on object of type 'ApprovalsConnectorFileAttachment'. Path 'attachments[0].ContentBytes', line 1, position 243.'."
  }
}

 

the strange thing here, is as long as its just the email connector, its totally fine.

But we need these attachments sent as part of the approval request.

 

Working:

nanimatCarbonRo_0-1687993720856.png

 

 

Failing:

nanimatCarbonRo_1-1687993814923.png

 

Help Appreciated!

 

Categories:
  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    @nanimatCarbonRo 

     

    use two compose one for email and other for approvals

    Email:

    developerAJ_0-1688021285468.png

     

    Approval:

    use Content instead of ContentBytes

     

     

    Please click Accept as solution and give it Thumbs Up if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    You can connect with me on LinkedIn

  • nanimatCarbonRo Profile Picture
    7 on at

    Thank you @developerAJ  !!!

    that worked perfectly now, thank you for the help 🙂

  • nanimatCarbonRo Profile Picture
    7 on at

    Copy and paste for anyone else looking into this:

     

    For Approval:

    {
    "Name": @{items('Apply_to_each_5')?['filename']},
    "Content": @{base64ToBinary(items('Apply_to_each_5')?['documentbody'])}
    }

     

    for Email:

    {
    "Name": @{items('Apply_to_each_5')?['filename']},
    "ContentBytes": @{base64ToBinary(items('Apply_to_each_5')?['documentbody'])}
    }

  • bsawma93 Profile Picture
    2 on at

    Can you tell me what is the formula used in content bytes?

    I am facing the opposite problem! my attachments are working for approvals but failed in send an email

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard