Implementation Steps:
Consider a Scenario, we need to Update or Set Person Lookup Field from PowerApps
Patch Logged in User to a Lookup Field:
Patch(
'TABLE NAME',
PERSONLOOKUPNAME: {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|"&User().Email,
Department: "",
DisplayName: User().DisplayName,
Email: User().Email,
JobTitle: "",
Picture: ""
}
}
);
Patch different User to a Lookup Field:
Patch(
'TABLE NAME',
PERSONLOOKUPNAME: {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|email@emaildomain.com",
Department: "",
DisplayName: "USER FULLNAME",
Email: "email@emaildomain.com",
JobTitle: "",
Picture: ""
}
}
);
That's it 🙂