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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Comparing two lists to...
Power Automate
Answered

Comparing two lists to find what is missing

(1) ShareShare
ReportReport
Posted on by 93
Hi,
 
I want to compare two arrays; one, I extract a list of emails from a Team and the other, I have an array of emails of who must be in that Team. I use a Compose and split for the second list and an HTTP action to retrieve the emails of the Team members. I then compare the lists in two filter actions so that I can either add or remove members. The filter actions are not comparing and are simply returning the From arras back. Here are my Filter array actions can someone please help me understand where I am going wrong?
 
 
TIA 
Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at
    Hello,
     
    take a look on this article I wrote some time ago, I think it might be what you're looking for: https://tomriha.com/compare-two-arrays-e-g-sharepoint-lists-using-power-automate/.
     
     
    ----------------------------------------------------------------------------------
    Did the answer solve your problem? Please click "Does this answer your question" and give it a like to help others in the community find the solution too!
     
    You can find more of my solution on the blog: https://tomriha.com!
  • NicolleAbraham Profile Picture
    93 on at
     
    I used you article to construct the flows but I still do not understand why it is not working. In your article you did mention the bigger array needs to be in the From attribute can this be a factor as to why mine is not working?
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at
    Hello,
     
    From the quick look it seems strange to use the variable once as the input of the first filter and then in the condition of the second filter - what's the point of filtering it if you're using it then again in the original form? I'd try to start again, build it step by step following the article.
  • Suggested answer
    w.p Profile Picture
    8,339 Super User 2025 Season 2 on at

    Maybe there are empty email addresses that need to be filtered out first, or add a condition to not include empty email addresses.

  • Verified answer
    NicolleAbraham Profile Picture
    93 on at
    Hi everyone,
     
    The issue was inconsistent data from the user and the system. I made sure all data was in lower case now it works. @tom_riha there are two filter actions because the one filter detects if there needs to be users added the other checks who needs to be deleted. In the flow those two actions work in parallel but I put them in series for a screenshot. Your article was great by the way super helpful it was just a data issue as I shuld've known.

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard