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 / Append JSON array into...
Power Automate
Unanswered

Append JSON array into Object and send it from response

(0) ShareShare
ReportReport
Posted on by

Good day everyone,

 

I parsed JSON Array with result as below :

 

=====================================

[
{
"id": 16,
"name": "Home & Living",
"label": "Home & Living",
"position": 5
},
{
"id": 4,
"name": "PLN",
"label": "PLN",
"position": 4
},
{
"id": 5,
"name": "Pulsa",
"label": "Pulsa",
"position": 3
},
{
"id": 28,
"name": "Shopping e-Voucher",
"label": "Shopping e-Voucher",
"position": 1
},
{
"id": 56,
"name": "F&B e-Voucher NEW",
"label": "F&B e-Voucher NEW",
"position": 1
}
]

=====================================

 
image.png
 
I was success to get id, name, label and posisition properties into HTML table as below :
 
image.png
 
but I was unable to get it all in response :
 
image.png
 
How can I do that to get all properties into response?
 
My goal is to show all 'name' in the JSON array list from response into dropdown button in PowerApps.
 
really appreciate your help
Categories:
I have the same question (0)
  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @Anonymous 

    Hi there!  Interesting issue, I wonder if the Response needs to be in an Apply to Each loop since your JSON is an array, right?

     

    What does the rest of the Flow look like?

     

    -Ed-

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Community Power Platform Member Profile Picture
    on at

    Hi @edgonzales ,

     

    here is my flow :

     

    image.png

     

    I already tried using apply for each but the result only got 1 object from that array since I need to retrieve all items into powerapps.

     

    note : response is forbidden to put in Apply to Each

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    Right (on the note), I was thinking about appending the lines to an array inside the loop and then presenting that in the response outside of the loop...but, I'm wondering if I'd be parsing the JSON just to put it back together again in the array.  Did we already consider putting the unparsed output JSON in the response already? Or are you adding data to it before sending it back to PA?

  • Community Power Platform Member Profile Picture
    on at

    the only way I think is to take all the objects that are in the array and then insert them into the new object variable so that the response will recognize all the properties that are in the new object, but until now I still haven't managed to do that. This flow will run when the user from the powerapps application sends the data needed to hit the API and when the API sends a response, it will be returned back to poweapps.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I got the answer of my question above.

     

    just need to give response body JSON schema into my Response and add body from parse output :

     

    image.png

     

    after that I can get all of the values in PA :

     

    from my collectionfrom my collectioninto my dropdown buttoninto my dropdown button

     

    Thanks everyone 🙂

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard