Deduplicate list
Deduplicate identification will allow you to automate the way you work with lists that contain duplicates. It will provide you with two lists - one that creates the unique values and the other will contain only the duplicates (video tutorial). In the following you will see an example in the form of an scenario.
As a PROCESIO user, I want to have an action that identifies duplicates in a List (the action can work only with simple lists). The action will help me obtain a new list containing only the unique values.
The example requires a process with just the DeDuplicate list action with the following configuration.
Step 1. Create a new process and give it a name.
Step 2. Drag the Deduplicate list action action to the canvas and link it to the other actions.

Step 3. Add the needed variables.

All the output variables will be of type list<object> and with the input <%list%> variable you have the option to provide the default value or add the value when you run the process.

The <%correlations%> output variable will use the system preconfigured correlation data type that you can find in the Type dropdown.

Step 4. Click the Deduplicate list action to access its configurations and click the button Configure.
- add the variables like in the following screenshot
- add the following JSon configuration, the "Exact" MatchType contains all conditions. You can change it to better suit your needs:

Full/Complex JSon configuration explanation:
MatchType - pattern matching is made by using several algorithms for pattern matching, the values accepted are:
- Exact - an exact match needs to be validated (=). The Exact match type uses all configurations.
ο»Ώ
- Similar - it compares 2 elements to see:
- if special characters do not exist, E.g. John-Doe and John Doe are a match (before comparing it replaces special characters and space characters with string.empty).
- phone numbers E.g. 376-323-1111 and 323-1111 are a match (if after replacing special characters and spaces with string.empty the string contains only numbers, a Field1 contains Field2 OR Field2 contains Field1 assessment is made).
- regardless of whether WWW, HTTP(s)://, exists to enhance domain or URL comparison.
- if an email is written with @ or " at " or "[at]" should be a match.
- Fuzzy - this uses the algorithms available in the StringSimilarity Action to compare one string against the other (read this for more details: Actions | String similarity ).
- FuzzyAlgorithm and FuzzyThresholdproperties are only used when MatchType = Fuzzy. If MatchType is something else, those properties will be ignored so, they can be null or can even not be present.
- Contains - this checks if Field1 contains Field2 OR Field2 contains Field1.
- Soundex - this checks if 2 words are similar if you would speak them. See implementation example. This matching algorithm evaluates the distance in βsoundingβ on a scale from 0 to 4, where 4 means the most similar βsoundingβ and 0 means that the words are very different.
- SoundexDistance - This is used only when the MatchType = Soundex and it can be set 0, 1, 2, 3 or 4, where 4 means that the words are very similar when spoken.
- SimilarWordMatch - This checks if the first N words in a string are the same as the first N words in another string OR if the last N words in a string are the same as the last N words in another string.
- SimilarFirstNwords and SimilarLastNwords properties are only used when MatchType = SimilarWordMatch, in which case at least one should be >0. If both are =0 then the SimilarWordMatch will not be executed at all since it does not make sense. If MatchType is something else, those properties will be ignored, so, they can have any value or can even not be present.
- IgnoredTerms - optional setting that is used to replace the words in this property with string.empty before making the Match assessment.
- The Sort is a optional setting describes that after evaluating the matches, the output list should be sorted based on the cumulative rules described here. If no setting is present here, no sorting operation will be performed.
Step 5. Save and Validate and Run the process.
Step 6. Each time you will run the process you are expected to add the list you wish to check, if you entered a default value you can edit it at this point and click Run.

Step 7. Click Check instance to see the result in the outputted variables.

ο»Ώ