
Announcements
Hello,
I have a flow in Power Autotame, that calls Sharepoint to update an item. I am using Sharepoint API Rest ('Send an HTTP request to SharePoint' action), where I modify several fields. All of the fields are updated properly but the person / group field. I dont get any error, only a 204 code.
When checked in Sharepoint, all fields are correct except person field.
URL
_api/lists/getByTitle('ListName')/items(ItemId)/
Headers
accept: application/json;odata=verbose
content-type: application/json;odata=verbose
If-Match: *
X-HTTP-Method: MERGE
Body
{
"__metadata": {
"type": "SP.Data.ListNameListItem"
},
"fieldToUpdate": [
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
"Claims": "i:0#.f|membership|email@company.com",
"DisplayName": "Name Surname",
"Email": "email@compay.com",
"Picture": ""
}
]
}
I receive a 204 code, but when I verify the item in Sharepoint the field is not updated.
Any suggestions?
Regards
Hi @DavidRojo ,
I have made a simple test for your reference.
1. Here is my list.
2. Here is my flow.
_api/web/SiteUsers/getByEmail('<Email>')}')?$select=Idbody('Send_an_HTTP_request_to_SharePoint_-_get_userid')?['d']?['Id']
Result Screenshot:
In addition, here is a link for your reference.
Best Regards,
Charlie Choi