Hello, I have created a survey application, and I send the results to 2 sharepoint lists. 1st list has a unique record of the user with some header data (name, role, department) and a field IDSurvey = GUID(), and a 2nd list where I keep a record for each response to the survey questions and each record will I record the same IDSurvey = GUID().
List1: User1Name (more than 2k records)
List2: Record1, Record2, Record3. (more than 50K records)

List1: "CuestionariosBAI" (header list)
List2: "ResultadosBAI"l (ist with answers)
Set(varSpinner2;true);;Remove(ResultadosBAI;Filter(ResultadosBAI;'Creado por'.Email = varUserEmail;IDRESULTADOS = ThisItem.IDCuestionario));;Remove(CuestionariosBAI;ThisItem);;Set(varSpinner2; false)
The problem I have is that when I use the REMOVE function on another screen where I have a gallery, it doesn't work correctly, according to the documentation remove is delegable unlike RemoveIf which is not, that's why I used REMOVE with FILTER to reduce the records by user. And I have placed the user's email in a variable, because I also know that it cannot be delegated. I have tried several ways to change the formulas to make it delegable but it doesn't work for me.
Set(varSpinner2;true);;Set(varIdEliminar;ThisItem.IDCuestionario);;Remove(ResultadosBAI;Filter(ResultadosBAI;'Creado por'.Email = varUserEmail;IDRESULTADOS = varIdEliminar));;Remove(CuestionariosBAI;ThisItem);;Set(varSpinner2; false)
I even thought that I should put the IDSurvey in a variable, so I changed that too.
et(varSpinner2;true);;Set(varIdEliminar;ThisItem.IDCuestionario);;Remove(ResultadosBAI;Filter(ResultadosBAI;IDRESULTADOS = varIdEliminar));;Remove(CuestionariosBAI;ThisItem);;Set(varSpinner2; false)
I changed to 5 records in the settings to test it, and it only deletes me the 5 records, but not the 20 that are in list 2 of the user survey responses, however it did delete me from list 1.
It looks like it has to do with delegation, but I am using delegable functions, please help.