Hey Tiago,
You have 2 options:
- You can use the list operation to union your list with itself (Select your list in both inputs). This option is recommended.
List Operation doc: https://docs.mendix.com/refguide/list-operation/
- Iterate through your list and check if the value already exists in it. You should only use this option if you need to apply more logic to this action.
Best Regards,
Ricardo Pereira
Hi,
You can union your list with itself. That will remove the duplicate objects.
Has anybody gotten this to actually work as desired? I tried this (union with an empty list of same type, and also unioned with itself). Either way the list didn't reduce. I suspect it's because of this:
https://community.mendix.com/link/space/microflows/questions/110529
Union appears to only consider the GUID (an internal thing). The GUIDs are unique by definition, so this didn't seem to work. I'm looking for removing duplicates based on several attribute values and don't care about GUID.