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 / Create gallery of vari...
Power Apps
Answered

Create gallery of variables

(0) ShareShare
ReportReport
Posted on by 14

Is it possible to access the app's variable list and throw all the variables into a collection to be displayed in a gallery? I know they are viewable inside the app's "Variables" right next to collections but I want to be able to put them into a gallery or list on a page within the app. 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @kreed11,

    Something like this

    ClearCollect(
     colVar,
     {VarName: "Variable 1 - " & var1},
     {VarName: "Variable 2 - " & var2},
     {VarName: "Variable 3 - " & var3},
     {VarName: "Variable 4 - " & var4}
    )

    or to make it dynamic in the Gallery - just make the Items

    Table(
     {VarName: "Variable 1 - " & var1},
     {VarName: "Variable 2 - " & var2},
     {VarName: "Variable 3 - " & var3},
     {VarName: "Variable 4 - " & var4}
    )

     

    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

     

     

  • kreed11 Profile Picture
    14 on at

    Thanks for the quick response. However, using this method I would have to list every variable manually correct? I want, possibly in the OnVisible or OnStart property, to create the collection by automatically retrieving all the variables used in the app. Is there a way to tap into the variable list (image below) or the app cache to get them?

    kreed11_0-1679082241496.png

     

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @kreed11 ,

    Power Apps has no "holistic vision" of your Variable list except selecting them as you have in Design Studio, so yes, you would need to hard-code them. Also bear in mind that if you are using any Context Variables, the gallery will only work on the relevant screen.

     

    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

  • kreed11 Profile Picture
    14 on at

    Got it, thank you so much for the information and example! 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard