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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,783)