Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Directly to Datasource or collection for gallery

(0) ShareShare
ReportReport
Posted on by 44

I have a gallery where i patch the selected record. Im wondering whats the best practice? To have the gallery directly to the datasource or use a collection?

Categories:
  • PowerAddict Profile Picture
    7,314 Most Valuable Professional on at
    Re: Directly to Datasource or collection for gallery

    Hi @helpPowerApps , 

     

    I typically use two collections - one that populates the gallery and another one that I use to patch the datasource. Problem with one collection is that if the collection that is populating the gallery is also being updated, the gallery will kind of "refresh" every time the collection gets updated providing for a bad user experience. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Microsoft Certified Trainer MCT

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • helpPowerApps Profile Picture
    44 on at
    Re: Directly to Datasource or collection for gallery

    ah i thought having the gallery connected to the datasource would be faster? So that theres no need to add ClearCollect to refresh the collection every time theres an update.

  • AARON_C Profile Picture
    2,233 Most Valuable Professional on at
    Re: Directly to Datasource or collection for gallery

    Hi @helpPowerApps,

     

    I think it is best to have your gallery attached to a collection. This will reduce the amount of times you need to connect with your data source. This makes your app performance slightly faster.

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard