How to check for duplicates in a list
Comments
-
Ive got a long list of string values that I need to check for duplicates. Is there a step that can do this so I dont have to check this manually?
-
Yes, we actually support a couple ways to do this.
Regarding steps, there is the [b]Get Distinct List of String[/b] step. You can map the list you want to check for its Input, and it will make a new list automatically removing duplicates for its output. The attached GIF named after this step demonstrates the removal of the duplicate Item3 in the example list.
Depending on the version you are running, we also have a pre-built [b]Get Unique Strings from List Flow[/b] available to search in the Toolbox to enter into your workspace as a Sub flow. When placed into your workspace, set its input to the list youd like to check and, like the [b]Get Distinct List of String [/b]step, it will automatically detect and remove the duplicates from the original list.
However, since this is done within another Flow, you can modify its logic to fit other needs in your process such as moving the duplicates to a separate list rather than deleting them by default. This also helps with organization. The GIF attached demonstrates this Flow.
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions