Hello PowerApps Community
I have an Edit Form called EditForm1, linked to a SharePoint list and the form has 3 data cards
One data card is linked to the Title column, one card is linked to a Date/Time column and one is linked to Person type.
The SubmitForm(EditForm1) function is saving changes to the Title column and the Date/Time column, but is not updating the Person column.
I understand that SharePoint Person type data types need to be handled differently to other SP column types and I wrapped the updated value into a Context Variable
UpdateContext({ctxApprover:{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",EmailClaims:"i:0#.f|membership|" & Lower(User().Email),
Department:"", DisplayName:User().Email,
Email:User().Email,
JobTitle:".",
Picture:"."}})
And then used this Context Variable as the Update property of the Data card, however the existing record is not being overwritten.
Does anyone have any success in using this method to update a Person type SharePoint column.
For reference I used the approach suggested in this article.
http://www.codeovereasy.com/2017/07/powerapps-set-sharepoint-person-field-to-current-user/
cheers Richard