I am creating an app that has 3 quizzes, each quiz has 2 parts. the user can do the quizzes in any order.
I am trying to add an if function to say that if record exists then update record in sharepoint list, if record doesnt exist the create a new record.
I am using the patch function. This is what i have at the minute:
If(
IsEmpty(
Filter(
DiagnosticTesting,
Email = User().Email
)
),
Patch(
DiagnosticTesting,
Defaults(DiagnosticTesting),
{
Title: User().FullName,
Email: User().Email,
Numeracy: Label3_1.Text
}
),
Patch(
DiagnosticTesting,
First(
Filter(
DiagnosticTesting,
Email = User().Email
)
),
{Numeracy: Label3_1.Text}
)
It appears to be working but i have a delegation issue on the First(Filter( section. How can i resolve this issue?
thanks