Hi there,
I'm trying to patch some data into a sharepoint list, however I get "Network Error when using Patch function: The requested operation is invalid" when trying to patch the People column called Requestee. The other two columns work fine.
otherUsers is a variable declared from a button which collects ThisItem in a peoplepicker. I've tried using Office365Users.MyProfileV2() instead and it still happens. No idea why this is happening and the syntax seems correct to me. All help is appreciated thanks.
Patch(
'Access Level Requests',
Defaults('Access Level Requests'),
{
Requestee: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & otherUsers.mail,
Department: "",
DisplayName: otherUsers.displayName,
Email: otherUsers.mail,
JobTitle: "",
Picture: ""
},
'Requested Access Level': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 1,
Value: roleList.Selected.Value
},
'Reason for Request': otherUsersReason.Text
}
)