cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Send an HTTP request to SharePoint document library to update column

I am getting a 400 error when trying to update metadata to sharepoint document library. This is my error:

 
status": 400,
  "message": "The property '__metadata' does not exist on type 'SP.Data.<librayName>Item'

This is the body I am sending

{
    "__metadata": { "type": "SP.Data.<libraryName>Item" },
    "<hyperlinkColumnName>": {
         "__metadata": { "type": "SP.FieldUrlValue" },
        "Description": "<validDescription>",
        "Url": "<validURL>"
    }
}

This works fine for listItems but I cannot get this to update the library column. Any ideas why it's saying "__metadata" is not valid?

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Send an HTTP request to SharePoint document library to update column

Hi @ItsBradMorgan,

 

Please check the following blog on Do more with Flow Send an HTTP Request to SharePoint and Site Designs for a reference:

https://techcommunity.microsoft.com/t5/SharePoint/Do-more-with-Flow-Send-an-HTTP-Request-to-SharePoi...

Besides, hope the following doc on SPList properties be helpful:

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ms443729(v=office.15)

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Advocate I
Advocate I

Re: Send an HTTP request to SharePoint document library to update column

I am able to add files and create folders fine, I am unable to update column data on a Document Library
Highlighted
Helper II
Helper II

Re: Send an HTTP request to SharePoint document library to update column

Did you figure out how to update columns etc in a document library? 

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,989)