Skip to main content
Community site session details

Community site session details

Session Id : SoPn76Dh/QWWcpgaNigd9m
Power Apps - Building Power Apps
Answered

Handling JSON response received from HTTP GET Custom API

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2017 10:24:35 by Microsoft Employee

I have a custom API (HTTP GET) which returns data in JSON format. A part of the data returned will just be used as metadata and the rest would be values that will be put on screen. When I inspect the network calls, I can see that the JSON data is being successfully returned by the API. 

ex: 

{

"id": "58f093f48de7",

"index": 0,

"name": "test"

}

 

I tried the network call in two ways,

UpdateContext({resultJSON:GetJSONData.GetJSONData()})

and

ClearCollect(resultJSON,GetJSONData.GetJSONData())

 

How should I access the data in resultJSON?

 

I am not able to access it like resultJSON.id or resultJSON.index.

In Collections section I see the resultJSON collection with only one column 'Value' and resultJSON.value returns no data.

 

When I inspected the network calls of some sample PowerApps, there were calls to getCollectionDataSource/getColumnsAndTypes which returns the field names like 'id', 'index', 'name', etc. Is this something that I can leverage?

Categories:
  • Community Power Platform Member Profile Picture
    on 03 Dec 2019 at 10:18:53
    Re: Handling JSON response received from HTTP GET Custom API

    Hi @karthikb ,

     

    How did you read the data from the JSON response?

  • karthikb Profile Picture
    Microsoft Employee on 21 Apr 2017 at 05:35:11
    Re: Handling JSON response received from HTTP GET Custom API

    Hi,

     

    Thanks for your help. I've figured out the issue and am able to use my custom API. The swagger file required additional fields defining my response data format.

    The following post also was related to my issue and the solution helped.

    https://powerusers.microsoft.com/t5/PowerApps-Forum/Swagger-file-definiton-for-object-array-response/m-p/18299#M7959

     

    Thanks,

    Karthik

  • Verified answer
    v-yamao-msft Profile Picture
    on 19 Apr 2017 at 09:09:55
    Re: Handling JSON response received from HTTP GET Custom API

    Hi Karthikb,

     

    Could you show me more details about your Swagger file definition for a further investigation?

     

    I have seen a documentation about “Customize your Swagger definition for PowerApps”, please check it for a reference:
    https://powerapps.microsoft.com/en-us/tutorials/customapi-how-to-swagger/


    Best regards,
    Mabel Mao

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete