Skip to main content

Notifications

Community site session details

Community site session details

Session Id : n8TGq1+sWCgih71MNi8ZJX
Power Automate - General Discussion
Unanswered

Merge two array into one array

Like (0) ShareShare
ReportReport
Posted on 3 Feb 2021 06:57:02 by 73

NeohLooi_0-1612335088689.png

I have the flow which getting two set of data from two table and I want to merge two into a single array. Both of them have one common primary key which is Item Type.

For left hand side, I get all row which Item Type equal to Book, it will return all Book data, same goes to right hand side. 

I want combine both array into single array for each row return from both table, I tried union but it seem not working in my case.
Any solution on my problem here? Any help will be great. 

  • AlexandrePicque Profile Picture
    74 on 19 Apr 2023 at 14:53:42
    Re: Merge two array into one array

    Hi,

     

    I had two tables to join in one of my flows too and I used the "union" function to join my two tables.

    I don't know if this is what you were looking for.

  • kgreen8790 Profile Picture
    189 on 11 Sep 2022 at 14:52:05
    Re: Merge two array into one array

    I had a similar issue and had to use "select" connector for each table to map keys then I could union the outputs from the "select" connectors in "compose" connector.

  • takolota1 Profile Picture
    4,859 Super User 2025 Season 1 on 30 Mar 2022 at 17:50:15
    Re: Merge two array into one array

    Are you looking to merge columns from 2 tables or to just append one table to another?

  • NeohLooi Profile Picture
    73 on 04 Feb 2021 at 04:34:05
    Re: Merge two array into one array

    After I tried on the solution....it seem like just assign the value to array variable...I tried the output is not merge....
    Or it have different way to do it in my current scenario?

  • VictorIvanidze Profile Picture
    12,240 on 03 Feb 2021 at 10:14:13
  • jinivthakkar Profile Picture
    4,179 on 03 Feb 2021 at 09:18:05
    Re: Merge two array into one array

    @NeohLooi I found a similar thread here : 

     

    https://powerusers.microsoft.com/t5/General-Power-Automate/Append-to-Array-Variable-action-is-not-working/td-p/331436

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
ankit_singhal Profile Picture

ankit_singhal 7 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 6 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 4 Super User 2025 Season 1

Overall leaderboard