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 :
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:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Re: Flow that checks for duplicates if it exists in a SharePoint list

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard