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 / Returning JSON Array t...
Power Automate
Answered

Returning JSON Array to Power Apps

(0) ShareShare
ReportReport
Posted on by

I am new to the power platform however I have managed to perform an get API call via Automates "HTTP" step.

I have a Http response from this as follows:

 

 

 

[
 {
 "id": 793272,
 "summary": "Create Network map",
 "recordType": "ServiceTicket",
 "board": {
 "id": 1,
 "name": "Service Desk"
 },
 "status": {
 "id": 591,
 "name": "Assigned Unscheduled"
 }
 },
{
 "id": 793273,
 "summary": "Create Network map2",
 "recordType": "ServiceTicket",
 "board": {
 "id": 1,
 "name": "Service Desk"
 },
 "status": {
 "id": 591,
 "name": "Assigned Unscheduled"
 }
 }
]

 

 

 

 So far so good. If I wanted to return this data (or at the very least id, summary and recordtype) to a canvas app and use it to populate a collection with columns. How do I do this?

 

Currently I have a "Respond to Powerapp or flow" step that returns and escaped Json string ie: 

 

 

 

"output": "[{\"id\":793272,\"summary\":\"Create Network map\"...

 

 

 

 The call to automate in Powerapps is constructed as follows: 

 

 

 

Set(id,"20960");
Collect(Collection1, GetCWTickets.Run(id))

 

 

 

The collection is returned as a single value and single row. How do I change this to display the id,summary and recordtype as columns? 

 

Collection ContentsCollection Contents

Categories:
I have the same question (0)
  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @thecolonel  use Response action to return the json back to PowerApps. Use following expression in PowerApps to store the json in collection

    ClearCollect(Collection1, GetCWTickets.Run(id))
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @thecolonel :

    Agree with @annajhaveri ,please use the 'Response' action instead of "Respond to Power app or flow".I've made a test for your reference:

    vbofengmsft_0-1631670681262.png

    Response Body JSON Schema:

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "id": {
     "type": "integer"
     },
     "summary": {
     "type": "string"
     },
     "recordType": {
     "type": "string"
     },
     "board": {
     "type": "object",
     "properties": {
     "id": {
     "type": "integer"
     },
     "name": {
     "type": "string"
     }
     }
     },
     "status": {
     "type": "object",
     "properties": {
     "id": {
     "type": "integer"
     },
     "name": {
     "type": "string"
     }
     }
     }
     },
     "required": [
     "id",
     "summary",
     "recordType",
     "board",
     "status"
     ]
     }
    }

    The Result:

    vbofengmsft_1-1631670707166.png

    Best Regards,
    Bof

     

     

     

  • FollowTheLion Profile Picture
    52 on at

    This was really helpful to me.  The response can be used directly as a table.  I basically do this:

    Set( objTable, buttonFlow.Run(sInputParameter) );

    And then I have objTable as the Items property of a Gallery object.

    No additional conversion or processing is required.

    This is really useful.

    Thanks.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard