Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 2fCDB/YUnX3Fe+Az3vDSbu
Power Automate - Building Flows
Answered

How to Combine multiple JSON result into single value.

Like (0) ShareShare
ReportReport
Posted on 7 Oct 2022 04:54:08 by 45

How to combine two JSON Values into single value.

This one might be very simple for you guys but i am not able to figure this out. 
Below example shows 2 values 

Learn2Live_0-1665117390659.png

I would like to combine them in to one value like this  2022-10-10 , 2022-10-11


I tried using appending the array value and still no luck 

Learn2Live_1-1665118327727.png

 

Any suggestions how to get this result - 2022-10-10 , 2022-10-11
Thank you

  • Learn2Live Profile Picture
    45 on 08 Oct 2022 at 02:33:18
    Re: How to Combine multiple JSON result into single value.

    Thanks @Paulie78  
    I was able to get this working from one of your previous suggestion.


    replace(replace(outputs('withBrackets'), '["', ''), '"]', '')
    https://powerusers.microsoft.com/t5/Building-Flows/Removing-brackets-from-a-Compose-Output/td-p/852590

  • Learn2Live Profile Picture
    45 on 08 Oct 2022 at 01:10:03
    Re: How to Combine multiple JSON result into single value.

    Tried using the replace function
    (replace(outputs('Compose'),'"Value":',''),';',',')

    & ended up with this output - {"2022-10-10"},{"2022-10-11"}

    still not able to figure out how to remove the “parentheses” / "curly brackets"

    Any suggestions 

     

  • Learn2Live Profile Picture
    45 on 07 Oct 2022 at 15:34:40
    Re: How to Combine multiple JSON result into single value.

    @Paulie78  Thank you, That almost solved the problem
    My compose output looks like this now - {"Value":"2022-10-10"},{"Value":"2022-10-11"}

    Learn2Live_0-1665156774577.png

    how do i remove the other values to get only the date...  

  • Verified answer
    Paulie78 Profile Picture
    8,407 Super User 2025 Season 1 on 07 Oct 2022 at 06:07:20
    Re: How to Combine multiple JSON result into single value.

    Try this.

     

    Add a new Select action after your parse JSON action.

     

    In the From field select from dynamic content the body from Parse JSON.

    In the map section click the little button on the right hand side that says "Switch map to text mode"

    In the map section from dynamic content choose Value (from Parse JSON).

     

    Add a Compose action and use this expression:

     

    join(body('Select'), ', ')

     

    That should be it. Screenshot to make it clearer:

    Join.png

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started