Skip to main content

Notifications

Power Automate - Building Flows
Answered

Merge 2 arrays into 1 without Apply to each

(0) ShareShare
ReportReport
Posted on by 1,085

My Array1

[
 [
 "Ramesh",
 "Mukka",
 "",
 ""
 ]
]

My Array2

[
 [
 "",
 "",
 "",
 ""
 ],
 [
 "",
 "",
 "",
 ""
 ]
]

 

The merged array should be

[
 [
 "Ramesh",
 "Mukka",
 "",
 ""
 ],
 [
 "",
 "",
 "",
 ""
 ],
 [
 "",
 "",
 "",
 ""
 ]
]

 

I am struggling with how to get it done efficiently. Can anyone help?

 

Regards,

Ramesh Mukka

  • Verified answer
    rameshmukka Profile Picture
    rameshmukka 1,085 on at
    Re: Merge 2 arrays into 1 without Apply to each

     

    The below expression has helped

     

    json(concat('[', slice(string(outputs('Compose_Array1')), 1, -1), ',', slice(string(outputs('Compose_Array2')), 1, -1), ',', ']'))

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard