Thank you for answering my question. I tried the solution you proposed before and tested it a couple
more times to be sure. Based on the results from the `Trace` function
(which I didn't know existed—thank you for guiding me on that), I confirmed that the
`ischoosen` property correctly reflects the number of selected items.
However, it still keeps deleting records it shouldn't.
For example, I have two records in the SharePoint list `tb_en_1_002`:
1. First record: `n_rg = 12`, `n_task = 1.02.002`
2. Second record: `n_rg = 155`, `n_task = 1.02.002`
The code successfully deletes both records from the SharePoint list, but it shouldn't.
The filter is accurately picking the exact line I selected in the main gallery,
which only has one `n_rg` (12) and one `n_task` (1.02.002).
Oh and here's how I used the Trace function:
ForAll(
Filter(ColfilteredInProgress, ischoosen = true),
Trace("Processing Record: n_rg = " & ThisRecord.n_rg & "; n_ensaio = " & ThisRecord.n_ensaio & ";
ischoosen = " & ThisRecord.ischoosen)
The rest of the code remains the same as the one I sent before.