Hi all, I'm getting an error that states "The requested operation is invalid. Server Response: Employee Changes failed: The specified user i:0#.f|membership| could not be found" I've seen several other posts about this with solutions marked, but none of them have worked for me. Not sure if I'm missing something. My submit button code is below. The form is always in FormMode.New if that makes a difference as these forms don't get edited in this use case. Any help is appreciated 🙂
SubmitForm(Form2);
Patch(
'Employee Changes',
Form2.LastSubmit,
{
Title: "EmployeeName",
'Employee Name': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Lower(DataCardValue11.Selected.Mail),
DisplayName: DataCardValue11.Selected.DisplayName,
Department: "",
Email: DataCardValue11.Selected.Mail,
JobTitle: "",
Picture: ""
}
}
)