web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need help filtering ar...
Power Automate
Answered

Need help filtering arrays with objects

(3) ShareShare
ReportReport
Posted on by 56
I'm working on a flow where I need to be able to detect changes between two arrays with objects. 

varPrevious:
 
[
{"uniqueID": "1111", "FirstName": "John", LastName: "Smith", "Age": "30"} ,
{"uniqueID": "2222", "FirstName": "Peter", LastName: "Paul", "Age": "32"} ,
{"uniqueID": "3333", "FirstName": "Steve", LastName: "Johnson", "Age": "25"} ,
{"uniqueID": "4444", "FirstName": "Randy", LastName: "Moss", "Age": "26"} 
]


varCurrent:
 
[
{"uniqueID": "1111", "FirstName": "John", LastName: "Smith", "Age": "30"} ,
{"uniqueID": "2222", "FirstName": "Peter", LastName: "Paul", "Age": "32"} ,
{"uniqueID": "3333", "FirstName": "Steve", LastName: "Smith", "Age": "25"} ,
{"uniqueID": "5555", "FirstName": "Jerry", LastName: "Rice", "Age": "34"} 
]
 
Given the two arrays I would like to be able to filter out new entries, deleted entries, and modified entries for reporting purposes.
 
End Goal:
New Entries: 
[{"uniqueID": "5555", "FirstName": "Jerry", LastName: "Rice", "Age": "34"} ]
 
Deleted Entries: 
[{"uniqueID": "4444", "FirstName": "Randy", LastName: "Moss", "Age": "26"} ]
 
Modified Entries:
[{"uniqueID": "3333", "FirstName": "Steve", LastName: "Smith", "Age": "25"} ]


I have tried using the filter array action but I can't seem to figure it out. 

 
Output: 
[
{"uniqueID": "3333", "FirstName": "Steve", LastName: "Smith", "Age": "25"} ,
{"uniqueID": "5555", "FirstName": "Jerry", LastName: "Rice", "Age": "34"}
]
 
 
The filter array action above returns the modified object (id:3333) and the new object (id:5555). The same happens when I filter for the deleted object. The filter array action returns the modified object (id:3333) and the deleted object (id:4444).
 
 
Any help would be greatly appreciated.

Thanks
Categories:
I have the same question (0)
  • Verified answer
    jody1213 Profile Picture
    56 on at
    Please disregard as I was able to figure it out!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard