cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Comparing two JSON Array to get differences

I have two arrays where I'm trying to find the differences that are in array 2.  With the current setup everything is returning false for the condition and I end up with basically a copy of array 1.

 

Array 1:

 

 
[
  {
    "DEVOPS Ticket": "10982756"
  },
  {
    "DEVOPS Ticket": "10982759"
  },
  {
    "DEVOPS Ticket": "10982755"
  }
]
 

 

Array 2:

 

[
  {
    "HS ID": "11361580"
  },
  {
    "HS ID": "10982756"
  }
]

Flow:

The compose doesn't do anything except allows me to see what's being compared.

 

Screen Shot 2019-10-16 at 7.47.41 AM.pngThis should have returned trueThis should have returned true

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Comparing two JSON Array to get differences

 

Hi @robevans ,

 

Please try using Filter array to filter out whether there is a matching item in array 2. If not, execute the append operation.

Image reference:

99.PNG

 

Best Regards,

Community Support Team _ Barry
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

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Comparing two JSON Array to get differences

 

Hi @robevans ,

 

Please try using Filter array to filter out whether there is a matching item in array 2. If not, execute the append operation.

Image reference:

99.PNG

 

Best Regards,

Community Support Team _ Barry
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

Highlighted
Microsoft
Microsoft

Re: Comparing two JSON Array to get differences

That was it!  Thank you!

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (6,511)