cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Responsive Resident
Responsive Resident

Opposite of intersection exist in PA?

So basically the title, I do an intersection() I get the common items, all is good. Now, is there an expression to get the items that don't match or would I be forced to use some filter array actions for this?

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hi @dlprentice 

I guess the only solution you have is to use Filter Array action. In this sample, this filter array action is getting items that are in List2 (array) and not present in List1 (array):

 

image-23You could do it for List1 and List2 in another action, and finally use a union operation to get a list of all items.

 

Hope it helps!

Ferran

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

5 REPLIES 5
fchopo
Super User
Super User

Hi @dlprentice 

I guess the only solution you have is to use Filter Array action. In this sample, this filter array action is getting items that are in List2 (array) and not present in List1 (array):

 

image-23You could do it for List1 and List2 in another action, and finally use a union operation to get a list of all items.

 

Hope it helps!

Ferran

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
dlprentice
Responsive Resident
Responsive Resident

Thank you! This works so much better than a Apply_for_each loop!

steve_hendy
Resolver I
Resolver I

Wish I saw this earlier, well done

risham
Regular Visitor

It does not work for me, instead of giving me the unique items, the flow returns all the items that are in the List 2

Works great! Just make sure you're arrays have the same structure.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,792)