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]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions