I am trying to update a SharePoint item from Power Automate but it's not working for me. I read the many posts about examples from SharePoint REST APIs and other people issues on the same subject but can't seem to be able to solve my issue. The body for my http request is as the following:
{
"__metadata": {
"type": "SP.Data.Teams_x0020_NamesListItem"
},
"TeamSiteUrl": {
"__metadata": {
"type": "SP.FieldUrlValue"
},
"Description": "Visit Site",
"Url": "https://mytenant.sharepoint.com/sites/@{triggerBody()['Createateam_TeamName']}"
}
}
Headers look like this:
Accept: application/json;odata=verbose
IF-MATCH: *
and the url is like the following:
_api/web/lists/getByTitle('Teams Names')/items(@{triggerBody()['Updateitem_Id']})
However am getting this error:
The property '__metadata' does not exist on type 'SP.Data.Teams_x0020_NamesListItem'. Make sure to only use property names that are defined by the type.
Any idea would help.
Solved! Go to Solution.
Sounds like you are making a POST...? Add the X-HTTP-METHOD header with the value of "MERGE" to your request.
Anyone has any idea about this?
Sounds like you are making a POST...? Add the X-HTTP-METHOD header with the value of "MERGE" to your request.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
71 | |
26 | |
16 | |
16 | |
15 |
User | Count |
---|---|
145 | |
45 | |
44 | |
33 | |
30 |