How to check for duplicates in a list

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.

Sign In or Register to comment.