Hi,
I have a SharePoint list with over 2000 records. My App is a scheduling app which records each day of a class being taught per line, therefore having its own ID number.
I collect the data using the following first, as I have to perform various filters.
/*Collect more than 2000 rows by concat two collections*/
ClearCollect(colC,Sort(Timetable,ID,Descending));
ClearCollect(colD,Sort(Timetable,ID,Ascending));
ClearCollect(Timetable_Collection,AddColumns(colC,"START",DateTimeValue(EventStart,"en-GB"),"END",DateTimeValue(EventEnd,"en-GB")),AddColumns(Filter(colD, !(ID in colC.ID)),"START",DateTimeValue(EventStart,"en-GB"),"END",DateTimeValue(EventEnd,"en-GB")));
Clear(colC);Clear(colD)
I am then using Timetable_Collection as my main data source to perform filters etc.
There is also a manual editable form I have in which I collect all the events for a particular class and display in a form.
The idea is to be able to delete each record individually or as a whole.
Originally, when my data set was less than 2000, the delete record work perfectly. But since it went above 2000, the delete is not working at all.
The code for deleting record is:
Select(Parent);
Remove(testCollection,ThisItem);RemoveIf(Timetable,ThisItem.ID = ID)
I collect all events with the same 'Title' under testCollection and try to compare the ID with the original SP List ID.
Any ideas how I can get this to work again?
Thank you,
Mo