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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to merge two filte...
Power Automate
Answered

How to merge two filtered arrays based on a common identifier

(0) ShareShare
ReportReport
Posted on by

Hello All,

 

I have two filtered arrays below, data into each is coming from dynamics finance and ops app's respective tables. 

-Array1 (data from table 1)
1. PurchaseOrderNumber

2. ProjectStatus

3. Approval Status 

........... and many other fields. 

Array-2 (data from table 2)

1. PurchaseOrderNumber

2. OrdererVendorAccountNumber

3. Tax Id

4. Fixed Asset Number and......................... plenty of other fields. See screenshot of the flow below. 

 

What I need to do is, since PurchaseOrderNumber is a common identifier between both arrays, I just need to pull OrdererVendorAccountNumber field from array-2 into array-1 , none of the other fields matter from array2 except OrdererVendorAccountNumber to be pulled into array-1. May be a merge operation but how? Please help with a solution. 

learningflow_0-1647366412687.png

 

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,277 Most Valuable Professional on at

    @Anonymous 

    Try this:

    • Create a new Array variable
    • Loop through Array 1
    • Inside the loop, filter Array 2 on the Purchase Order number of the current item
    • Add an element to the Array variable containing all data required from Array 1 and Array 2

    Let me know if you need additional help.

     

     

  • Community Power Platform Member Profile Picture
    on at

    thank you so much @ScottShearer for sharing these steps. I understood all first three steps in place but I am not understanding the 4th step you mentioned of adding an element to the array var, do you mind sharing little more info on that or a screenshot, thanks again. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard