Hello @GarethPrisk
Thanks for your response, I've been implementing this today and it is helping me a lot, but I got an error, if you happen to know what this error is all about and how to fix it, that'd be a great help.
What I did so far:
On App OnStart:
Set(varUserEmail, Lower(User().Email));
Set(globalUserRecord, LookUp(SPTrainee, userEmail=varUserEmail));
If(IsBlank(globalUserRecord), Set(globalUserRecord, Patch(SPTrainee, Defaults(SPTrainee), {LastName:varUserLastName, FirstName:varUserFirstName,FirstGrade:"0",userEmail:varUserEmail,ActivityDateTime:Now()})));
ClearCollect(colUserRecord, globalUserRecord);
Above is working great, it is creating a single user row, per user.
Then, in the first screen the user sees, I will start collecting some data based on the user interaction with the app, for instance, I will first collect the button text to insert that piece as the Course Description when the button is pressed.
OnSelect of a button:
UpdateIf(colUserRecord,true,{CourseDescription:btnMain.Text}));
Set(globalUserRecord,First(colUserRecord));
Patch(SPTrainee, LookUp(SPTrainee, userEmail=varUserEmail),globalUserRecord);
Navigate(Onboarding, ScreenTransition.Cover);
Up to this point, everything is working OK. Then in the next screen (Onboarding), I would like to start collecting the user score, based on some checkboxes selection. I have the following in the OnSelect property:
ClearCollect(colUserRecord,globalUserRecord);
If(chkCheckMark.Value=true,Set(Score,Score+1),Set(Score,Score-1));
UpdateIf(colUserRecord,true,{FirstGrade:Score});
Set(globalUserRecord,First(colUserRecord));
Patch(SPTrainee, LookUp(SPTrainee, userEmail=varUserEmail), globalUserRecord); //This one has the red line below it, giving the error "{VersionNumber}: The specified column is read-only and can't be modified."
I am getting an error which says {VersionNumber}: The specified column is read-only and can't be modified and I can't figure out what I am doing incorrectly.
Appreciate any assistance.
Thank you!