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 / How to Combine multipl...
Power Automate
Unanswered

How to Combine multiple JSON result into single value.

(0) ShareShare
ReportReport
Posted on by 47

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

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    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 😘

  • Learn2Live Profile Picture
    47 on at

    @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...  

  • Learn2Live Profile Picture
    47 on at

    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
    47 on at

    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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard