web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to load data from ...
Power Apps
Answered

How to load data from API and display in powerapps canvas?

(0) ShareShare
ReportReport
Posted on by 2

So I have this simple api endpoint: myurl.com/get_all_data

 

It returns an array of items:

 

[ { "id": 1, "name": "A23", "color": "red" }, { "id": 2, "name": "A235", "color": "blue" }, { "id": 3, "name": "A238", "color": "green" } ]

 

I need the simplest and easiest way to load this data into a PowerApps Canvas and display it as a table there (that can be refreshed automatically on every page load).

 

| id | name | color |
|-----|-------|-------|
| 1    | A23   | red    |
| 2    | A235 | blue   |
| 3    | A238 | green |

 

Can someone help with what steps should I use to load this data and make it accessible to powerapps canvas and display it as a table?

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @fpowerpas ,

     

    What's the data type of the returned data?

    If it's an array, we can show it in gallery or data table.

     

    Best Regards,

    Wearasky

  • fpowerpas Profile Picture
    2 on at

    I tried to set it as array but it only allows to be returned as a string in powerautomate flow. No idea if I am creating correct pipeline. Howe can I ensure that api endpoint response is saved as array in powerautomate/powerapps?

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @fpowerpas ,

     

    If it's a json string in flow, you can use json('your json string here') function to convert it into array.

    Then you can use resposen action (need premium license) in flow which will pass the array from flow to canvas app.

     

    If you are using custom connector in canvas (not use canvas to call flow), you can try the parsejson function. (enable it in canvas setting first, it's a preview feature)

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-parsejson

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard