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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery Items not show...
Power Apps
Unanswered

Gallery Items not showing within component

(0) ShareShare
ReportReport
Posted on by

Greetings, 

 

I created a gallery within a component, but every time I try to connect to data, it says that the name of the data source within items isn't recognized. My data source is a sharepoint list. Can someone please advise. 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    You should not be accessing a datasource in your component!  The concept of a component is that it is independent of the hosting app.  Datasources are specific to an app, so trying to access the datasource in the app breaks the component concept.

     

    If you need to use a component still, then you should have an Input property on your component that is a table type property.  Then the definition of the record in the component property should reflect the schema of the records you need for your component and the gallery.  

    Example, an Items table property in your component that has a record schema of Table({Title: "title", Number: 1}) (as just a pure example!)

     

    The Items property of your Gallery in the component would then be based on that property and it would have a formula of:  Parent.Items

     

    Finally, once your component is placed in your app, then you would set the Items property of your added component to conform to the record schema.

    Example on the Items property:  ShowColumns(yourDataSource, "Title", "Number")

     

    This then provides you with a component that is independent of the app (as components were designed to be).

     

    I hope this is helpful for you.

  • Suggested answer
    TG-24091313-0 Profile Picture
    2 on at
    Hi,
     
    Select the component and in right side you can see "Access app scope". Set "Access app scope " to true. then you can get gallery items in component.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard