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 / Merge 2 arrays into 1 ...
Power Automate
Answered

Merge 2 arrays into 1 without Apply to each

(0) ShareShare
ReportReport
Posted on by 1,115

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

Categories:
I have the same question (0)
  • Verified answer
    rameshmukka Profile Picture
    1,115 on at

     

    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

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
David_MA Profile Picture

David_MA 262 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 211 Most Valuable Professional

#3
trice602 Profile Picture

trice602 198 Super User 2025 Season 2

Last 30 days Overall leaderboard