Hi,
For filtering collection you could use ""Utility - Collection manipulation"" => ""Filter Collection"" but I think DataTable(BP Collection) does not support Distinct keyword, thus writing ""distinct column1"" in Filter field wouldn't work.
I have got two solutions for you.
1st is to use 2 collections.
Original Collection that you want to filter and Filtered Collection where you'll put only distinct values.
The process could look like:
You loop over original collection and check if current value is already in second collection. If it is not, add it to second collection, if it already exists in second collection, omit it and go next.
2nd is to create your own Code Stage for eg. you could use:
- Linq
- public DataTable ToTable(bool distinct,params string[] columnNames)
eg. MyTable.ToTable(true, ""Col1"", ""Col2"")
However, here you have to create View of table first and then convert it to Table using ""ToTable"" ;)
Hope it helps.