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 / How to retrieve the re...
Power Automate
Unanswered

How to retrieve the records from array based on dynamics filtered object values.

(0) ShareShare
ReportReport
Posted on by 9

Hello ! 

 

I am currently facing an issue with using a filtered value to refer back to an array. Specifically, I have successfully identified the common values between two arrays, but I am unsure of how to retrieve the corresponding records from one of the arrays based on these common values.

 

My objective is to obtain the records from Array1 that match the common values between the two arrays, which are identified based on two columns: Description and Amount.

 

This is my current flow: 

  1. Retrieve data through HTTP.

  2. Compose the message body from an array.

  3. Reshape the output of the composition step to produce only two objects.

  4. Use these two objects to compare between two arrays and extract the common value

flow_1.jpg

flow_2.jpg

Able to get common value thru step initialize variable and Filter array is not working.Able to get common value thru step initialize variable and Filter array is not working.

 

My array1 and array2 similar as below ( It was a long list and I only shows necessary object) : 

[
{
"id": "067b3026-91b9-ed11-9a88-000d3ac75e55",
"entryNumber": 3703,
"bankAccountNumber": "CHECKING",
"postingDate": "2023-03-03",
"documentType": " ",
"documentNo": "NPR-000050",
"description": "cash",
"currencyCode": "",
"amount": 932.09,
},
{
"id": "4e265f80-cebb-ed11-9a88-6045bd1cd407",
"entryNumber": 3765,
"bankAccountNumber": "CHECKING",
"postingDate": "2023-03-06",
"documentType": " ",
"documentNo": "NPR-000063",
"description": "cash",
"currencyCode": "",
"amount": 528.48
}
]

 

I reshaped the array to 2 elements ( description and amount) for compare purpose. 

[
  {
    "description": "Relecloud",
    "amount": 400
  },
  {
    "description": "Alpine Ski House",
    "amount": 500
  }
]
 
If you have any insights or suggestions on how I can accomplish this task, I would greatly appreciate your help. 
Categories:
  • DidacRoig Profile Picture
    72 on at

    If i understood properly what you want is to get the unique values in that array?

    If is that, you can use the union function:

    • union(myarray,myarray)

    It will return one array with distinct or unique values from that array.

    I let you this link for more information about power functions: 

    https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference 

  • Miss_Bishan Profile Picture
    9 on at

    Hi DidacRoig , 

     

    Thanks for the input . I'm trying to use the common value as a reference to retrieve a record from array1. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard