cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jkeckard007
Level: Powered On

comparing two Arrays Remove elements that are the same

I have two arrays

array 1 [apples, peas, pears, grapes],

array 2   [apples, oranges, bananas, peas, carrots]

If the item is in Array 1 my final array basically remove  any items it finds a match for from the final array

Final array [ oranges, bananas, carrots]

Can this be done in MS Flow?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: comparing two Arrays Remove elements that are the same

Hi @jkeckard007 ,

 

The array 1 and array 2 that you provided as below are not standard Array type:

array 1 [apples, peas, pears, grapes],

array 2   [apples, oranges, bananas, peas, carrots]

 

And the standard Array type array 1 and array 2 should as below:

["apples", "peas", "pears", "grapes"]
["apples", "oranges", "bananas", "peas", "carrots"]

 

 

Please refer to screenshot below to create the flow:

1.png2.png3.png4.png

 

The flow would run successfully as below:

5.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: comparing two Arrays Remove elements that are the same

Hi @jkeckard007 ,

 

The array 1 and array 2 that you provided as below are not standard Array type:

array 1 [apples, peas, pears, grapes],

array 2   [apples, oranges, bananas, peas, carrots]

 

And the standard Array type array 1 and array 2 should as below:

["apples", "peas", "pears", "grapes"]
["apples", "oranges", "bananas", "peas", "carrots"]

 

 

Please refer to screenshot below to create the flow:

1.png2.png3.png4.png

 

The flow would run successfully as below:

5.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 329 members 6,935 guests
Please welcome our newest community members: