
Announcements
I am testing a flow to update the choices of my choice column. I created a flow that will get the current choices using an HTTP request, put the old choices into an array, append the array, and use a HTTP request to post the new choices to the column. For my HTTP request I am getting my SP column by title but when I try to update the column I get this error:
The property '__metadata' does not exist on type 'SP.FieldChoice'. Make sure to only use property names that are defined by the type.
For my HTTP request to post the changes my body is:
{ "__metadata":
{ "type": "SP.FieldChoice" },
"Choices": { "results": [ varResults ]}
}
This is what I'm using to merge the new choice with the old choices:
varResults is the array I used to put the old choices into. My SP column name is 'Order Type' and it is a required field.
Did I make a mistake for the body of my HTTP request or the Headers? How can I get the desired outcome of merging the new choice with the old choices?
I don't know the exact answer, but I would search for examples that does not require using _metadata in the body.
I think you do this by changing the content to application/json;odata=none
and then remove the metadata part
This way it doesn't expect full metadata.
Here is a quick example I googled, maybe it will help