Hello Everyone,
I currently have a SharePoint List with multiple columns with Reviewer Names and I am trying to build a flow where its able to identify duplicates that is if a name is repeated more than once in any of the Reviewer columns. Below is an example of the SP list layout:
Title | Reviewer_1 | Reviewer_2 | Reviewer_3 | Reviewer_4 | Reviewer_5 | Reviewer_6 | Reviewer_7 |
Task ABC | John | Garry | Tom | Sam | John | Tom | Smith |
above the names (John and Tom) have been used more than once, Please can somebody give me any ideas on how to capture this in Flow.
Since once the duplicates are identified, I would further use it to update another list stating Duplicates Found.
Thanks
You could do something like this:
1) Get items from sharepoint
2) For each item
3) Get the email address value of the reviewer for each column, add it to an array, and use the union operator. Union operator removes duplicate values.
4) If the number of items of the union operator is equal to 7 (in this example, 3) it means that all values are different, if not, it means there are duplicate values.
The expression use to detect duplicate among 3 columns is the follwing:
union(union(array(items('apply_to_each')?['Reviewer1/Email']),array(items('apply_to_each')?['Reviewer2/Email'])),array(items('apply_to_each')?['Reviewer3/Email']))
Hope it helps!
Ferran
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
User | Count |
---|---|
26 | |
25 | |
23 | |
22 | |
14 |
User | Count |
---|---|
45 | |
33 | |
33 | |
32 | |
30 |