web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to Eliminate duplicate items using power automate ?

(1) ShareShare
ReportReport
Posted on by 421
Hi All,
 
I have a requirement, where I need to find the duplicate contact from dynamics and need to send the list of duplicate contacts to user.
 
All I have done, through the logic like first I have sort the output of list rows and then comparing(email column) second row to first and third to second and fourth to third and so on. So like this I got Unique and Duplicate contacts list.
 
 
 
 
But issue is that, Like I need to the all duplicate itmes inside the duplicate list but here it is giving one item in unique list and rest of the duplicate item in duplicate list.
 
for example: Array=[A,A,A,B,B,C,C,D,E] then  it is giving
 
Unique Array=[A,B,C,D,E]
Duplicate Array=[A,A,B,C]
 
But It should be 
Duplicate Array =[A,A,A,B,B,C,C]
Unique Array=[D,E]
 
Can someone please suggest me a way to achieve this ?
I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    How to Eliminate duplicate items using power automate ?
    Hi Partner,
    You can just use two nested 'List rows' steps to achieve the purpose.
    Please refer to the following steps:
    1.List rows:
    Note: click “Settings”, activate “Pagination” and set the “Threshold” to the maximum allowed value of 100,000. If you don’t take this step, your Flow will only check 512 records by default and probably won’t catch all of your duplicates.
    2.Variabe to store the number of return contacts

    3.Condition:

    4.Update 'isduplicate' flag of the contact:

    Then you can use this flag to specify records are duplicate or unique.
    More information:

    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 129 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans