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

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.pngScreen Shot 2019-10-16 at 7.48.19 AM.pngThis should have returned true

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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

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

robevans
Level: Powered On

Re: Comparing two JSON Array to get differences

That was it!  Thank you!

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: 341 members 5,631 guests
Please welcome our newest community members: