I have an app that records, via Patch OnStart, various info about the user when they first log into the app (see code).
Patch(
'Mentee Interest Tracking',
Defaults('Mentee Interest Tracking'),
{
PotentialMenteeEmail: User().Email,
Mentee: {
Claims: "i:0#.f|membership|" & User().Email,
Department: "",
DisplayName: "",
Email: "",
JobTitle: "",
Picture: ""
},
Department: Office365Users.MyProfileV2().department,
Location: Office365Users.MyProfileV2().officeLocation
}
);
What I want to do is update the record created, in the 'Mentee Tracking List' SP list, when the app was opened (add new info into column not initially populated) if the user selects an entry in a gallery within the same session in the app. The gallery is based around an individual and I would like it to populate a person column in the list.
- The field in the gallery that identifies the person needed is: ThisItem.'Mentor Name'.Email
- The name of the column in the list that needs to be populated is: MentorofInterest

I know Patch can do this via the 'OnSelect' elemnet of the Gallery item but cannot work out how
Any help appreciated.