I read through their example and honestly it seems like it was written by someone with not much experience coding. The steps they have there are an attempt to show how to use the activities, but as an actual process it makes no sense.
I am using ‘for each row’ to iterate through a datatable to create a collection of datarows that I wish to delete. I then use ‘for each row’ again to iterate through the collection to delete the identified rows. Very much parallel to the UiPath example.
If a Filtered Datatable is the output that is expected based on some conditions, then you could try using the Filter Datatable Activity. Maybe more of a Direct approach than collecting and deleting the identified rows.
We could go for a Linq approach as well if it doesn’t work with the Filter Datatable Activity.
Filter Datatable literally does all that in one step. That’s how you’d do it in the real world. Their example is doing it a roundabout way, apparently in an attempt to show some concepts and teach some things.