web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

BadRequest Error when working with "Add a new row" with the Dataverse table "Attachment"

(0) ShareShare
ReportReport
Posted on by 1
Hi, 
 
I am struggling to complete the action "Add a new row" with the Dataverse table "Attachment". I am receiving a BadRequest error message. Below is the JSON structure:
 
{
    "host": {
        "connectionReferenceName": "shared_commondataserviceforapps",
        "operationId": "CreateRecord"
    },
    "parameters": {
        "entityName": "activitymimeattachments",
        "item/attachmentid@odata.bind": null,
        "item/objecttypecode": "email",
        "item/objectid_email@odata.bind": "emails(d2de9de9-a8cc-f011-bbd3-00224829a995)",
        "item/body": {
            "$content-type": "application/octet-stream",
            "$content": ********
 
        },
        "item/filename": "RALREF05205 - image001.png",
        "item/mimetype": "image/png",
        "item/subject": "RALREF05205 - image001.png"
    }
}
 
I don't know what is wrong. I am followed all instructions, but I am missing a detail. I think am failing with item/objectid_email@odata.bind": "emails(d2de9de9-a8cc-f011-bbd3-00224829a995).
 
Can you help me? 
 
Thanks, 
 
 
I have the same question (0)
  • chiaraalina Profile Picture
    1,051 on at
    BadRequest Error when working with "Add a new row" with the Dataverse table "Attachment"
    Hi
     
    The body expects a string not a JSON.
     
    You have to use something like this outputs('Get_file_content')?['body']['$content']
     
    to get the content string.
     
    Let me know if it helps!

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 489 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 471 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 261

Last 30 days Overall leaderboard