Hi,
I have an app which "OnStart" collects information of the user and saves it to SP list, then I want to save and add score per user when checkbox or radio button is selected.
There are about 30 buttons which corelates to different score values, those I wish to add per user progress in the SP.
I have tried different approaches but I am unable to Patch the result to dedicated SP column called "Score". The other thing is that it needs to add up the value with each selection, ex. +10 +50 and etc.
For now I have come up with this logic, but it doesn't write to the SP and I am lost why:
ClearCollect(
colUserRecord,
globalUserRecord
);
If(
Checkbox2.Value = true,
Set(Score,100
),
Set(Score,0
)
);
UpdateIf(
colUserRecord,
true,
{Score: Score}
);
Set(
globalUserRecord,
First(colUserRecord)
);
Patch(
'Employee progress',
LookUp(
'Employee progress',
UserEmail = varUserEmail
),
globalUserRecord
);
Any help will be much appreciated.