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

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,865 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
    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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard