Hi Oliver,
I made an action in BP that does not use any custom code stage, but it's a bit convoluted because I have it accounting for any collection of any number of fields and gives the choice to deduplicate based on one or more fields. This kind of manipulation is likely better in code as you mentioned. But, to solve at least your use case, it's not very difficult to do in BP.
First, I'll assume you're trying to filter a collection for unique values in a single field. The most efficient way that I am aware of is to first use Sort Collection on the field you are focusing on. Then, use Loop stages to loop through the collection. Also, create two data items: Current Value and Previous Value.
Here's the flow or at least this is something like what you'd go for.: (Collection1 is your main collection and Collection2 is what you're copying unique values to)
Sort Collection1 on your field so that equal values are next to each other alphanumerically.
Loop Start
Get the current value of the field and store it in 'Current Value'
Decision stage: [Current Value]=[Previous Value]. (FYI: the first time through the loop it will compare the current value to empty text -- if this is a text datatype)
If Yes, Go to the Loop End
If No, add a new row to Collection2 and store the current row in Collection1 into the new row in Collection2
(still under If No) Also set the value in [Current Value] into [Previous Value]
Loop End
If you are trying to compare the entire row, there are a couple ways to do this. You can compare entire collections like [CollectionA]=[CollectionB] so you'd probably copy rows out into temporary, single row collections to compare them to each other. Otherwise, depending on the datatypes of your fields, you could compare a concatenation of all the fields, like [CollectionA.Field1] & [CollectionA.Field2] = [CollectionB.Field1] & [CollectionB.Field2].
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company