I am trying to record the number of attempts people make in a quiz into a SP list column, the current formula I have is:
Set(
varAttempts,
With(
{
Attempts: Filter(
'Email Services - Knowledge Check',
Email = CurrentUser
)
},
CountRows(Attempts)
)
);
Patch(
'Email Services - Knowledge Check',
{
Title: "Email Services - Knowledge Check",
Participant: User().FullName,
Email: CurrentUser,
Score: Score & " / 10",
'Duration (mins)': DateDiff(courseStartTime, Now(), TimeUnit.Minutes),
Attempts: varAttempts + 1,
Logon: Office365Users.UserProfileV2(User().Email).mailNickname
}
)
And this works fine, however, the SP list is likely to gain over 2000 responses - will this formula still be able to work? I previously used this formula prior to the patch and this also worked but it had a delegation warning:
Set(varAttempts, CountRows(Filter('Email Services - Knowledge Check', Email=CurrentUser)));
I want to prevent any chance of data not being collected - which formula is best to use for records that could potentially exceed 2000 records?
Data source: 'Email Services - Knowledge Check'
Column with participants email: 'Email'
Column with attempts: 'Attempts'
Global variable: varAttempts
Global variable of user's email: CurrentUser
I appreciate your expertise

Report
All responses (
Answers (