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 / Can't Display JSON Arr...
Power Apps
Unanswered

Can't Display JSON Array in Canvas App Gallery but can in a label

(0) ShareShare
ReportReport
Posted on by 13

I can't display JSON Array in Canvas App Gallery but for some reason it works in a label.  Are arrays in Galleries not supported or am I doing something wrong?

JSON:

 

 [
 {
 "name":"Steve",
 "favoriteFruit":["Kiwi", "Mango"],
 },
 {
 "name":"bob",
 "favoriteFruit":["Banana", "Strawberry"],
 }
]
Here is what I can show in my gallery versus what I can't:
2023-02-16_11-33.png
What's crazy is I can access the favoriteFruit if I put the results in a label and do this NOT in a gallery:
Text(Index(First(Table(peopleVariable)).Value.favoriteFruit, 1))
 
But if I do the same in as individual Gallery items it's just empty
Text(Index(ThisItem.Value.favoriteFruit, 1).Value)
 
I know the above would only get the first value & that's fine for now.  The goal is to turn this into a comma separated list.
 
 
 

 

Categories:
  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at

    Hi @sastrakhan ,

    A Gallery is expecting a Table

    Table(
     {
     name: "Steve",
     favoriteFruit: ["Kiwi", "Mango"]
     },
     {
     name: "bob",
     favoriteFruit: ["Banana", "Strawberry"]
     }
    ]

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard