I have a sharepoint list (ASPRO Calendar - Stephen) that now has more than 2000 records so I have created a collection (Stephen_col) from two separate filtered collections (Stephen_col_1 and Stephen_col_2) based on an ID column that is present in the sharepoint list. This all works fine.
The sharepoint list/collection populates a power app page that is built to resemble a table with names down the left side and dates up the top but each cell of the table is built up of individual buttons which show some data related to that date and person
The issue I have is these buttons are supposed to change a Choice column in the Sharepoint List (column name = Completed) from either blank or No to Yes and back to No if it is clicked again on an existing record. This Patch formula works fine when I referenced the sharepoint list directly when it had less than 2000 records but once I introduced the collection element it is now not working.
I have created a text label to show the value of the Completed column once the button has been pressed and this does change to Yes or back to No when the button is pressed but the sharepoint list does not get updated
The OnSelect formula for the button is this:
If(LookUp(Stephen_col,Name.DisplayName=HOAP_LM_1.Text && Text(StartTime,"dd/mm/yyyy")=HOAP_Lbl_SundayDate.Text,Completed.Value)="No"||"",
Patch(Stephen_col, LookUp(Stephen_col,ID = LookUp(Stephen_col,Name.DisplayName=HOAP_LM_1.Text && Text(StartTime,"dd/mm/yyyy")=HOAP_Lbl_SundayDate.Text,ID)),{Completed: {Value: "Yes"}}),
Patch(Stephen_col, LookUp(Stephen_col,ID = LookUp(Stephen_col,Name.DisplayName=HOAP_LM_1.Text && Text(StartTime,"dd/mm/yyyy")=HOAP_Lbl_SundayDate.Text,ID)),{Completed: {Value: "No"}}))
HOAP_LM_1 is a Label with a name in it
HOAP_Lbl_SundayDate is a label with a date in it
Any help would be appreciated as I have been searching for an answer for a while for this