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 / Flagging items between...
Power Automate
Unanswered

Flagging items between two sources inefficient

(0) ShareShare
ReportReport
Posted on by 141

I'm working on a Power Automate flow that compares data between a table (updated daily via a CSV file) and a SharePoint list to flag differences. After I clean up the table data using Power Query, the dataflow refresh triggers my flow. The goal is to keep the SharePoint list updated by:

  • Adding new items from the table that aren't on the SharePoint list.
  • Marking items as inactive if they’re no longer in the table.
  • Updating existing items if any changes are made to them.

My SharePoint list has about 500 items, and the table has around 300 records. I compare the Property ID from the table with the Property ID in the SharePoint list.

The issue is that I believe the way I set it up is inefficient, causing 500 x 300 = 150,000 comparisons, which makes the flow take a long time to run. I think the flow is looping through each item in the SharePoint list and comparing it with every item in the table, slowing things down.

Questions:

  • Am I doing something wrong with my flow?
  • Is there better methods that I am not aware of?
  • Is there a better, more efficient way to perform this comparison?
Screenshot 2024-10-17 102453.png
Categories:
  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at
    Check the action "Filter array", especially its operators "contains" and "does not contain".
  • Leu0101 Profile Picture
    141 on at
     Thanks for the suggestion! I'm not entirely sure how to restructure my flow to incorporate the "Filter array" action. Could you explain what changes I need to make to add this into my flow? Specifically, how should I use "contains" and "does not contain" to improve the comparison process between my SharePoint list and table data?
  • David_MA Profile Picture
    15,715 Super User 2026 Season 2 on at
    If nobody comes up with a viable solution via Power Automate for what you want to do, I suggest looking into Layer2 Cloud Connector. It keeps two data sources in sync, which is what I think you are trying to do. It supports a variety of data sources. It requires that both data sources have a common primary key, which would be your Property ID. You can learn more about it at Layer2 Cloud Connector ► integrate and sync data (layer2solutions.com). We use this and it works exceptionally well and we currently have over 100 sync jobs.

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
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard