Although the Nintex Workflow Collection Operation action has a Remove Duplicates option, it removes the duplicates, but keeps the original.
So if you have something like this:
You result would be :
What I want, is for the duplicates and their originals to be removed. Resulting in this :
1,3,5 (I don't want 2 and 4, because they are duplicated).
The cool thing about this User Defined Action, is that we're only using a Collection Operation, For Each and Run If action. Using them in different ways and multiple times, but it shows how you can build some cool logic with Nintex Workflow with even a subset of the actions.
I explained everything I did in the User Defined Action in the video above. So please watch that if you want to know how and why I'm doing what I'm doing. Just sitting here and typing this out, makes me think that there could be an easier way to do this, but this works and it's fairly quick (depending on the size of your collection).
NOTE: this does use a case sensitive compare, so make sure you're aware of that.
If you have any comments, questions, suggestions, please post them in the comments section below. All the files should be downloadable in the Downloads section below.