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 / Datasource not refresh...
Power Apps
Unanswered

Datasource not refreshing when Custom Page linked to Model-Driven App form

(0) ShareShare
ReportReport
Posted on by 168

I followed Reza Dorrani's brilliant intro to Custom Pages with Model-Driven Apps and created my first Custom Page with a gallery that opens the item's Model-Driven form with OnSelect=Navigate(ThisItem). However if anything gets updated in the form the old data is still shown in the gallery. Only refreshing the page gets the new data loaded. I tried adding a refresh button to the page that calls Refresh(MyDatasource) but aside from that not being a great user experience, it only works on the second click. Any ideas how to solve this? Here's the steps to replicate:

 

1) Create a new solution

2) Add a new table

3) Populate the table with some test data. In my case Product 1, Product 2

4) Create a new Model-Driven App

5) Add a page to the app using the Model-Driven App template and select the table

6) Add a page to the app using the Custom page template

7) Add a gallery component to the page and set the Datasource to the table added in step 2

😎 Set OnSelect = Navigate(ThisItem)

9) Save and publish your app

10) Play the app and click on an item in the gallery

11) Edit the name field and Save and Close

12) Original name still shows in gallery

 

 

Categories:
  • Bilakanti Profile Picture
    1,226 on at

    @SimonSays -Can you refresh the datasource on save/update rather than adding a new refresh button.

  • SimonSays Profile Picture
    168 on at

    Hi @Bilakanti How do I refresh a datasource from my Model-Driven App? I don't see how that's possible. Here's the tutorial I was following - https://www.youtube.com/watch?v=XMopL0r8k3k&t=54s 

  • LeeAucote Profile Picture
    10 on at

    Hi,

    I've come across a potential work-around regarding refresh/caching issues in Custom Pages.

    Adding this to a button or timer for example, forces a refresh and should update galleries:

     

    Launch( "YourURL",
    {},
    LaunchTarget.Replace )

     

    Just replace the URL with the URL of the Custom Page.


    Whilst this also may not be the best user experience, it's the only way of refreshing in this scenario that seems to work.

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