Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / How to Eliminate dupli...
Sales forum
Suggested answer

How to Eliminate duplicate items using power automate ?

Posted on by 359
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 ?
Categories:
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans