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 / Combine two select out...
Power Automate
Unanswered

Combine two select outputs

(0) ShareShare
ReportReport
Posted on by 2

I have two select actions that ouput data in exactly the same format:

extect_0-1686666864197.png

[...]

extect_1-1686666894902.png

I now want to combine the two outputs into the same array. How can I achieve that?

Categories:
I have the same question (0)
  • Ravi14 Profile Picture
    26 on at

    Hi @extect 

     

    Do you want to get the 2 outputs as an Array or as a single text?

  • Ravi14 Profile Picture
    26 on at
  • extect Profile Picture
    2 on at

    Hi  @Ravi14 

    Thank you for your help. I tried createArray as you suggested.

    It outputs something like this.

    [
     [
     {
     "Name": "A",
     "Target": "15"
     },
     {
     "Name": "B",
     "Target": "10"
     }
     ],
     [
     {
     "Name": "C",
     "Target": "40"
     }
     ]
    ]

     

    What I am looking for though is this, where Name C is coming from one select output and Name A und B from another select ouput.

     [
     {
     "Name": "A",
     "Target": "15"
     },
     {
     "Name": "B",
     "Target": "10"
     },
     {
     "Name": "C",
     "Target": "40"
     }
     ]

     

  • Ravi14 Profile Picture
    26 on at

    Hi @extect 

     

    What is the output  you are expecting and from which screenshot?

  • agatakurylak Profile Picture
    6 on at

    Is there any update on it?

  • LeeHarris Profile Picture
    1,026 on at

    Hi @extect and @agatakurylak 

     

    You should be able to make use of the Union expression to achieve this as long as both of your arrays are in the exact same format. Note that this will remove any duplicate records that it finds so you will be left with a distinct list.

     

    Add a Compose action as shown in the screenshot further below and set the expression to the following:

     

    union(outputs('Select'),outputs('Select_2'))
     
    Note: outputs('Select') and outputs('Select_2') are just the names of the actions that are creating your arrays. You can change this in the expression if your actions are called something different.
     
    LeeHarris_0-1699373024025.png

     

    You should then be able to use the output of the Compose action as an array in any actions that follow it.

     

    Hope that helps.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard