Remove Duplicates

Removes duplicates from a list.

Input Fields

  • List: The list you want to remove duplicates from.

  • Path: While List is a list of objects, Path is the name of the key that determines whether something is a duplicate or not.

    For example, you may want just one customer record per unique email address. This field is required.

Output Fields

  • List No Duplicates: The list of objects with duplicate items removed.

To filter out duplicates using more complex criteria than a single value or key, use the Unique Custom function. This function calls a helper flow to determine the value for each item and determines if it's unique or not.

Examples

If List is [9,80,1,9,20,1], then the returned List No Duplicates is [1,9,20,80]. The function returns only one instance of each number.

Another scenario, where the elements in the list are objects.

Copy
[
{
"name": "Nicole",
"value": 10
},
{
"name": "Sarah",
"value": 20
},
{
"name": "Emily",
"value": 10
}
]

If the input for the Path is value, then the returned List No Duplicates has only one object with the value 10:

Copy
[
{
"name": "Nicole",
"value": 10
},
{
"name": "Sarah",
"value": 20
}
]

Related topics

Lists

Functions

Workflow elements