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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow that checks for d...
Power Automate
Unanswered

Flow that checks for duplicates if it exists in a SharePoint list

(0) ShareShare
ReportReport
Posted on by 21

Hi.  I'll try and keep it simple. I have variations of this flow working, but I'm not satisfied with the elegance of the instructions.  I have a current flow that pulls data from an Azure group and populates a SharePoint list.  If I re-run this flow, it will duplicate the list every time.  

mcinnisbr_0-1663358393673.png

 

Solution 1

One way around it is to enforce unique values at the SharePoint column levels. The flow will fail when it hits duplicates in the list, but it still creates all missing items without duplicating the existing items.  I can live with that, but it seems hacky.

 

Solution 2

I found another way to run the flow, and then run another action/step after to remove duplicates, though it was super taxing and took like 10 minutes to complete. 

 

------------

Is there a a more elegant way to splice in a duplicate check (the azure group and the current SP List) before the flow starts feeding into the list?  Is it possible to use a select and union scenario to check and remove duplicates prior to the flow firing results into the SP list?

 

I was using these as ideas but can't quite figure out if I can create a check. @DamoBird365 

Efficient Union, Except And Intersect – Great Method - DamoBird365

 

Example, I tried to create a 'select' from the current SP list that gets fed from the flow and 'union' it with the filtered array results form the Azure group that it feeds from.  Might be on the right track, but I'm slightly lost in execution.  

 

mcinnisbr_2-1663359284364.png

 

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    I would think that Solution 1 is an acceptable approach as long as it is sufficiently fast. Always a good idea to push work upstream.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard