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 Automate
Answered

Merge 3 arrays into 1

(0) ShareShare
ReportReport
Posted on by 15

Hello Everyone, I have 3 sets of arrays which looks like this

Emailaddressarray

[
"test1@gmail.com",
"test2@gmail.com",
"test3@gmail.com"
]

TotalPendingItems

[
"280",
"211",
"33"
]

TotalOutstandingItems

[
"40",
"45",
"24"
]

 

I would like to merge all 3 arrays into single arrays, The output should look like this

[
{ "Email": "test1@gmail.com", "TotalComplete": "280", "TotalOutstanding" : "40" },
{ "Email": "test2@gmail.com", "TotalComplete": "211", "TotalOutstanding" : "45" },
{ "Email": "test3@gmail.com", "TotalComplete": "33", "TotalOutstanding" : "24" }
]

 

Any help, appreciated.

Thanks

 

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @ismaredia 

     

    Try this-

     

    Nived_Nambiar_0-1719598198355.png

     

    Nived_Nambiar_1-1719598210879.png

     

    use select action for merge purposes

    Nived_Nambiar_2-1719598246836.png

     

    Expression used - 

    range(0,length(variables('TotalOutstandingItems')))
    Nived_Nambiar_3-1719598293691.png

     

    Expression - 

    variables('Emailaddressarray')?[item()]
     
    Nived_Nambiar_4-1719598322354.png

     

    Expression - 

    variables('TotalPendingItems')?[item()]
     
    Nived_Nambiar_5-1719598351785.png

     

    Expression - 

    variables('TotalOutstandingItems')?[item()]
    Nived_Nambiar_6-1719598463770.png

     

    Output of select action would be like this (as shown in compose action) -
     Nived_Nambiar_7-1719598498997.png

     

    Hope it helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Verified answer
    ismaredia Profile Picture
    15 on at

    @Nived_Nambiar  - Perfect! This works like a magic. Thanks for looking into this.

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @ismaredia 

    Good to know it resolved the issue !

    Kindly mark the answer as solution so that it help others.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. 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

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 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard