I've created two object arrays. I would like to compare the two array items by 'SpaceId' key, then add whatever items don't match to a third array. Here is a sample of my two arrays:
I would like my condition to be if variable(array1)['SpaceId'] is not equal to variable(array2)['SpaceId'] then append to a 3rd array.
If they are equal then do nothing.
I'm pretty sure my syntax is probably totally off but I hope I'm getting my goal across. I'm new to the game so I would appreciate any help that I can get with this.
Solved! Go to Solution.
Here is how you can do it...
Compose2 Expression --> item()?['spaceid']
Filerarray expression --> item()?['spaceid']
Check Length expression -->length( body('Filter_array'))
Finally append to array expression --> body('Filter_array')[0]
Here is how you can do it...
Compose2 Expression --> item()?['spaceid']
Filerarray expression --> item()?['spaceid']
Check Length expression -->length( body('Filter_array'))
Finally append to array expression --> body('Filter_array')[0]
@dgonzalesjr - Did you get chance to check my solution?
@dgonzalesjr - Did you get chance to check my solution?
Hello @PrasadAthalye so sorry for the wait. This solution has worked for me. Thank you so much for your help!
User | Count |
---|---|
95 | |
39 | |
25 | |
22 | |
16 |
User | Count |
---|---|
129 | |
51 | |
48 | |
35 | |
24 |