Trying to use flow action send HTTP request to update a multiple person field in a sharepoint list. The list item was created previously and I want to update the list item field when based on a previously defined trigger.
API URI
https://xxx/sites/xx/Departmental_xxx_xxxs/_api/web/lists/getbytitle('BI_xxx_Collector')/items('25')
Headers:
For simplicity, I've hard coded two user ids into the body.
{
"__metadata": { "type": "Collection(Edm.Int32)" },
Assigned_ToId: { "results": ["36","42"] }
};
I get this error message :
Thanks @v-bacao-msft your link is what I've been searching for since I started this flow. @sudharsan1985 you got me 1/2 way there so thanks as well.
Hi @srduval ,
Please try to refer to the following article to create HTTP request:
updating-a-multi-people-field-in-sharepoint-with-microsoft-flow
Then you could check this similar thread to get the correct value of the type:
Flow-Error-Send-HTTP-Request-to-SharePoint-to-Clear-out-a-Person
Please take a try again and check if the issue still exists.
Best Regards,
Hi @srduval
The '__metadata' should follow the below structure with the list entity name
'__metadata': { 'type': 'SP.Data.Mandatory_x0020_ReadsListItem' }
My list name is 'Mandatory Reads', you can find the entity name of the list by using the below url and replace the siteurl and 'List Title'
https://<siteurl>/_api/web/lists/GetByTitle('List Title')?$select=ListItemEntityTypeFullName
You have to pass the Id's of the people as an integer array not string array.
Try the above, it should work
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2