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 / Issue viewing Items in...
Power Apps
Unanswered

Issue viewing Items in a Gallery from a JSON Collection Data Source

(0) ShareShare
ReportReport
Posted on by 23

Hi Everyone, 

 

I am returning a multi-row json object (see screenshot/json below) from a flow into PowerApps via 

ClearCollect(mycollection,'exampleflow.Run()) 

to load it into a collection. The collection populates as expected and I can see its contents when I view the collection in PowerApps collections explorer (see screenshot). 

 

example.png

 

However when I set the gallery datasource as 'mycollection' and try to populate labels in the gallery via: 

ThisItem.Catalog.CD.Artist 

I get the following error message: "Expected Text Value". However, if I use:

First(ThisItem.Catalog.CD).Artist

then the gallery returns the first row from within the collection but none of the other rows (which I want to see!)

example3.PNG

 

It feels like I'm missing something very simple!! Does anyone have any ideas about how best to display json collection data in a gallery????

 

Thanks!

 

---------------------------------------------

 

Here is the example json I am using from the following website: http://hp1.gcal.ac.uk/help/wvtxmlex.htm.

I have confirmed that the json is valid via jsonlint.com

 

{
 "CATALOG": {
 "CD": [
 {
 "TITLE": "Empire Burlesque",
 "ARTIST": "Bob Dylan",
 "COUNTRY": "USA",
 "COMPANY": "Columbia",
 "PRICE": "10.90",
 "YEAR": "1985",
 "ORACLE": "\n select * from scott.dept;\n "
 },
 {
 "TITLE": "Hide your heart",
 "ARTIST": "Bonnie Tyler",
 "COUNTRY": "UK",
 "COMPANY": "CBS Records",
 "PRICE": "9.90",
 "YEAR": "1988"
 },
 {
 "TITLE": "Greatest Hits",
 "ARTIST": "Dolly Parton",
 "COUNTRY": "USA",
 "COMPANY": "RCA",
 "PRICE": "9.90",
 "YEAR": "1982",
 "ORACLE": "\n begin\n htp.p('This is the test data');\n end;\n "
 },
 {
 "TITLE": "Still got the blues",
 "ARTIST": "Gary Moore",
 "COUNTRY": "UK",
 "COMPANY": "Virgin records",
 "PRICE": "10.20",
 "YEAR": "1990"
 }
 ]
 }
}

 

I recently cam across the following post which I am experiencing a similar problem to. 

https://powerusers.microsoft.com/t5/General-Discussion/Powerapps-problem-accessing-JSON-collection/td-p/104100

 

I essentially followed this helpful guide here: https://powerapps.microsoft.com/ja-jp/blog/return-an-array-from-flow-to-powerapps-response-method/

 

Categories:
I have the same question (0)
  • pwapp Profile Picture
    23 on at

    Polite bump to include some extra details 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @pwapp I'm going to bump this so the community can hopefully assist 

     

    @Anonymous 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard