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 / Merge multiple arrays ...
Power Automate
Unanswered

Merge multiple arrays into an array

(0) ShareShare
ReportReport
Posted on by 4

Dear readers,

I met a problem with the above problem. My initialize array is :

 
[
{
"Description": [
"Half day training - Microsoft Office",
" 'Fish out of Water: Finding Your Brand",
" Half day training - Microsoft Office"
],
"Quantity": [
"1",
"1",
"3"
],
"UnitAmount": [
"500",
"25",
"500"
]
}
]
For the above, having three arrays (Description, Quantity & UnitAmount). How to merge the three array into an array (Array Name: InputArray)
​
 
 
 
Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @lzh_0319 ,

    Please try this expression:

    [
    {
    "Description": "@{replace(replace(replace(replace(split(triggerBody()?['text_2'],','),'\',''),'"',''),'[',''),']','')}",
    "Quantity": "@{replace(replace(replace(replace(split(triggerBody()?['text_4'],','),'\',''),'"',''),'[',''),']','')}",
    "UnitAmount": "@{replace(replace(replace(replace(split(triggerBody()?['text_5'],','),'\',''),'"',''),'[',''),']','')}"
    }
    ]

    Best Regards,

    Sunshine Gu

  • lzh_0319 Profile Picture
    4 on at

    Hi @v-yetonggu-msft ,

    Thank you for your reply. I think is my explanation has something wrong. My preferred output is:

    "value": [

    {
    "Description": "Half day training - Microsoft Office"
    "Quantity": 1
    "UnitAmount": 500
    }
     
    {
    "Description":  'Fish out of Water: Finding Your Brand\"
    "Quantity": 1
    "UnitAmount": 25
    }

     

    {
    "Description": Half day training - Microsoft Office
    "Quantity": 3
    "UnitAmount": 1500
    }
    Best Regards
    LZH

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 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard