Hi @abd3127,
As the Person or group column type in SharePoint list is considered as a lookup field, we should patch the whole record of the person to this field, and depends on whether you have the Multi-Selection enabled, the schema varies.
I will share an example here.
1. Patch to the Person or group field, which only allows single value.
The record of single person would contain the following values:
{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|michael@wiXXXX.onmicrosoft.com",
Department:"",
DisplayName:"Michael Shao",
Email:"Michael@wiXXXX.onmicrosoft.com",
JobTitle:"",
Picture:""
}
Each value should match the pre-defined value stored under SharePoint data source, if you have no idea for the Department, JobTitle or Picture field, you may just leave it as "".
Fields need to be entered:
The Value for this field is fixed.
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
for Claims field,you should modify the end of this field to match the person Email:
Claims:"i:0#.f|membership|michael@wiXXXX.onmicrosoft.com",
And the DisplayName and Email field, as shown below:
DisplayName:"Michael Shao",
Email:"Michael@wiXXXX.onmicrosoft.com",
To patch a person to the Person or group field as a new record, the formula should be(Title is a required field when creating new records, so whenever a new record is created, all the required field should be get involved in the patch 3rd parameter.):
Patch(Patchtesting,
Defaults(Patchtesting),
{ Title:"SinglePerson",
Person: {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|michael@testing.com",
Department:"",
DisplayName:"Michael Shao",
Email:"Michael@testing.com",
JobTitle:"",
Picture:""
}})
For Person or group Field which have Multiple selection enabled, the structure is a little difference.
For example, the following code would work to patch the MultValue person field:
Patch(Patchtesting,Defaults(Patchtesting),
{ Title:"MultiPerson",
Multi_x002d_Person:
Table(
{ Claims:"i:0#.f|membership|michael@testing.com",
Department:"IT",
DisplayName:"Michael Shao",
Email:"Michael@testing.com",
JobTitle:"",
Picture:""},
{ Claims:"i:0#.f|membership|test2@testing.com",
Department:"",
DisplayName:"Test2",
Email:"Test2@testing.com",
JobTitle:"",
Picture:""})
}
)
Image reference:



Regards,
Michael