Find Unique and Duplicate values in a list

Find Unique and Duplicate values in a list

Comments

  • Hi,

    I want to find and return unique and duplicate values in my list. How can I best achieve this?

  • Hello,

    I have attached a Project which would achieve this for you.

    At the start of my Flow I have initialized two empty lists to keep track of the unique and duplcate values. After this, I am passing my input list into a ForEach step which allows us to iterate through each item in our list. Each item is then passed into a rule which checks if it is present in our list of unique values. If not, I add to our list keeping track of the unique values and if it is already present, the Flow adds the items to the list keeping track of the duplicate values. Once the Flow iterates through out entire input list, the Flow returns the list of unique and duplicate values.

    Please try this and let me know if it works for you.

    [i][b]Please Note:[/b] The examples attached were developed to be instructional, and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact: services@decisions.com[/i]
    [i]edited by kshitij@decisions.com on 9/23/2020[/i]

Sign In or Register to comment.