I have a power automate flow where I have an array of objects which contains email address as a filed. I have another array that just has email addresses. I want to filter array of objects based on the email present in the other array. I am a newbie to power automate and any help in solving this would be highly appreciated.
Array of objects:
[
{
"@odata.etag": "",
"ItemInternalId": "a23f2019-2b33-41af-a741-7faedeed9e0f",
"First Name": "John",
"Last Name": "Wick",
"Email Address": "[email protected]",
"Manager Email Address": "[email protected]",
"Manager First Name": "John",
"Manager Last Name": "Wick"
},
{
"@odata.etag": "",
"ItemInternalId": "6fc4cc1b-13e8-47c3-9fca-09872fe758ae",
"First Name": "John2",
"Last Name": "Wick2",
"Email Address": "[email protected]",
"Manager Email Address": "[email protected]",
"Manager First Name": "John2",
"Manager Last Name": "Wick2"
}
]
Array of email addresses:
[
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
]
So, the result I am looking for is an array of objects that contains the matching object (in this case):
[
{
"@odata.etag": "",
"ItemInternalId": "a23f2019-2b33-41af-a741-7faedeed9e0f",
"First Name": "John",
"Last Name": "Wick",
"Email Address": "[email protected]",
"Manager Email Address": "[email protected]",
"Manager First Name": "Test",
"Manager Last Name": "Surname"
}
]




