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 / Combining two or more ...
Power Automate
Answered

Combining two or more different arrays into one

(1) ShareShare
ReportReport
Posted on by 80

Hi,

 

I would like to combine multiple different arrays into one. I have for example the following two arrays:

["123","456","789","987"]

["John","Patrick","Simon","Bill"]

 

I would like to have the following:

[

{

"no":"123",

"name":"John"

},

{

"no":"456",

"name":"Patrick"

},

{

"no":"789",

"name":"Simon"

},

{

"no":"987",

"name":"Bill"

}

]

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @SBS 

     

    Follow the below steps.

     

    image.png

     

    image.png

     

    Above expressions are as follows:

    (1) For the do until loop expression is
         length(variables('Id'))
    (2) Append to String variable 2
         variables('Id')[variables('index')]
         variables('Names')[variables('index')
    (3) Finally the condition
         length(variables('Id'))
     
    Final flow action outside the do until loop
    image.png
     
    Here is my final test result
     
    image.png
     
    If you have any questions please let me know.
     
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @SBS ,

     

    Assuming the number of elements in the two arrays is equal, you can refer to the Flow in the attachment to achieve your needs.

    You can import attachments to see the details of the Flow configuration.

    Please take a try.

     

    Best Regards,

  • nzacharakis Profile Picture
    105 on at

    Excellent solution! Very helpful, thank you 😀

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard