web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating person or gro...
Power Apps
Answered

Updating person or group field through Sharepoint rest API doesn't work

(0) ShareShare
ReportReport
Posted on by 2

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

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @DavidRojo ,

     

    I have made a simple test for your reference.
    1. Here is my list.

    vyujincuimsft_3-1665996657597.png

    2. Here is my flow.

     

    _api/web/SiteUsers/getByEmail('<Email>')}')?$select=Id
    body('Send_an_HTTP_request_to_SharePoint_-_get_userid')?['d']?['Id']

     

    vyujincuimsft_1-1665996443395.png

    vyujincuimsft_2-1665996466699.png

    Result Screenshot:

    vyujincuimsft_4-1665996736173.jpeg

    In addition, here is a link for your reference.

    https://pankajsurti.com/2020/10/12/how-to-update-people-field-using-send-an-http-request-to-sharepoint-in-power-automate/

     

     

    Best Regards,

    Charlie Choi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard