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 / Merge two Arrays with ...
Power Automate
Answered

Merge two Arrays with common ID

(0) ShareShare
ReportReport
Posted on by 65

Hi,

I saw one you tube video to merge two arrays with common ID and created following flow. However Ia m getting error. Pls advcie where am I going wrong or if there is any easier method available to get the same result it will be very much appreciated.

You Tube: https://www.youtube.com/watch?v=QSF6dNkSKSA&list=LL&index=3

 

I need to merge following arrays:

Array 1:

[
  {
    "Parameter": "2A",
    "No Match Array 1": "40"
  }
]
 
Array 2:
[
  {
    "Parameter": "2A",
    "No Match Array 2": "80"
  }
]
I require final array as
[
  {
    "Parameter": "2A",
    "No Match Array 1": "40"
     "No Match Array 2": "80"
  }
]
 
For this I created following flow. Here both arrays are coming from select operation:
svivek_0-1658370861563.png

 

 

However I am getting following error . Pls advice where am I going wrong. 

 

svivek_1-1658370861807.png

 

 

Categories:
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @svivek ,

     

    I have made a simple test for your reference.

     

    Here is my Flow.

    item()?['Parameter']
    items('Apply_to_each')?['Parameter']
    items('Apply_to_each')?['No Match Array 1']
    first(body('Filter_array'))?['No Match Array 2']
    {
     "Parameter": @{items('Apply_to_each')?['Parameter']},
     "No Match Array 1": @{items('Apply_to_each')?['No Match Array 1']},
     "No Match Array 2": @{first(body('Filter_array'))?['No Match Array 2']}
    }

    vyujincuimsft_0-1658732512884.png

    vyujincuimsft_1-1658732534094.png

    vyujincuimsft_2-1658732825161.png

    vyujincuimsft_3-1658732840479.png

    Result Screenshot:

    vyujincuimsft_4-1658732885012.png

     

     

    Best Regards,
    Charlie Choi

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
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard