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 / Finding the difference...
Power Automate
Unanswered

Finding the difference between two arrays

(0) ShareShare
ReportReport
Posted on by 1,596

Hello,

 

I need some help finding the objects from array A that are not present in array B.

 

Here is what I have so far:

KvB1_0-1629278720946.png

testarr is the array variable A that i want to filter. The JSON parse is array B, that I want to use in the filter. In Selecteren and Selecteren 2, I grabbed the titles from both arrays, and in 'Variabele instellen' I grabbed the intersection of those arrays, returning the objects that have a Title in both A and B. I store this in the array variable vartest.

KvB1_1-1629278903604.png

I then use the above filter array to return the Titles that are not present in the intersection, but are present in array A. So basically, these are the Titles that I want the objects from, from array A.

 

To grab the objects from array A, I made the following:

KvB1_2-1629278989776.png

On the left: contains(body('Matrix_filteren_2'),item())

is gelijk aan = is equal to

 

However, this returns me an empty array:

KvB1_3-1629279089737.pngKvB1_4-1629279109874.png

 I want the last filter action to return:

 

 

 

[
 {
 "Title": "698436983244398",
 "Test": "3"
 }
]

 

 

 

 

I would like to avoid using a ForAll. Thanks in advance!

Categories:
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @KvB1 

     

    You’ve got the right idea and can do this with a filter array. Check the following article for the except. https://www.damobird365.com/efficien-union-except-and-intersect-great-method/

    Please let me know how you get on.

     

    Damien

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 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard