Hello Everyone,
I have a combobox that patches to a person column. However, there are some users whose details do not patch. It gives a network error message that says ": requested operation is invalid". I don't have this issue with the majority of users. What could the problem be?
//submit the form data
Set(varCurrentAdminRecord,
Patch(
Units,
varCurrentAdminRecord,
{
Unit: txt_AdminUnits_Unit1_1.Text,
Department: txt_AdminUnits_Dept1_1.Text,
UnitHead: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & cmb_AdminUnits_UnitHead1_1.Selected.DisplayName,
Department: "",
DisplayName: cmb_AdminUnits_UnitHead1_1.Selected.DisplayName,
Email: cmb_AdminUnits_UnitHead1_1.Selected.DisplayName,
JobTitle: "",
Picture: ""
},
DepartmentHead: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & cmb_AdminUnits_DeptHead1_2.Selected.DisplayName,
Department: "",
DisplayName: cmb_AdminUnits_DeptHead1_2.Selected.DisplayName,
Email: cmb_AdminUnits_DeptHead1_2.Selected.DisplayName,
JobTitle: "",
Picture: ""
},
Members:ForAll(
cmb_AdminUnits_PayRequester_1.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & ThisRecord.DisplayName,
Department: "",
DisplayName: ThisRecord.DisplayName,
Email: ThisRecord.DisplayName,
JobTitle: "",
Picture: ""
}
)
}
));
// check for errors
If(
IsEmpty(Errors(Units)),
// on success
UpdateContext({locAdminFormDisplayMode: "View"});
Notify(
"Success: Record Saved",
NotificationType.Success
),
// on failure
Notify(
Concat(Errors(Units), Column&": "&Message),
NotificationType.Error
)
);
Refresh(Units)