How can i find all elements in array and remove them?

Answered

Hi Community,

I'm stuck (again ๐Ÿ™‚). I have an array of objects (royalties_per_book). I use the Find All Elements function to find all objects matching my expression and store them in another array (publisher_aggregated).

After that, I want to delete the found objects from the first array but I can't figure that out. I tried to use the diff_assoc filter, but that seems to do nothing. I also tried to use a second 'Find All Elements' combined with an 'in' search filter (as shown here), but I think that doesn't work for objects.

Any advice?

The array structure:

The Loop:

Best,
Stefan

6 replies