0

I'm working on a flow that needs to create a column in a SharePoint library. I'm using the SP REST API for this. When I send start the I send the API request I get the following error:"

The property '__metadata' does not exist on type 'SP.Field'. Make sure to only use property names that are defined by the type.

enter image description here

How can I fix this?

1

Try using configuration settings like below:

enter image description here

Uri:

_api/lists/getbytitle('FlowLibrary')/fields

Where FlowLibrary display name of document library

Headers:

accept: application/json;odata=verbose
content-type: application/json;odata=verbose

Body:

{
  '__metadata': {'type':'SP.FieldText'},
  'FieldTypeKind': 2,
  'Title': 'field title',
  'StaticName': 'field name'
}

Output:

enter image description here

1
  • 1
    This worked. Thank you very much
    – musie
    Sep 27 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.