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 Pages / Power Pages Modern Lis...
Power Pages
Suggested Answer

Power Pages Modern List Force Refresh using Javascript

(2) ShareShare
ReportReport
Posted on by 8
I have modern a modern list showing unapproved records. On the page there is an Approve button that trigger the webapi to update a set records. After the update is successful, I need to refresh the list. This isn't working, and I can't find any documentation on how to do this.

document.addEventListener("DOMContentLoaded", () => {
    const grid = document.querySelector("pages-grid[list-id='Default List Name']");
   grid?.refresh();
});
Categories:
I have the same question (0)
  • Suggested answer
    Lucas001 Profile Picture
    2,563 Super User 2026 Season 1 on at
     
    how are you fetching the data?
    I would suggest using liquid to get the latest data from the server.
    You can use liquid and the guide here: https://oliverrodrigues365.com/2020/07/27/power-apps-portals-caching-tips/ to get the latest data.
    Otherwise you will need to wait due to the caching of power pages and dataverse.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 42

#2
Valantis Profile Picture

Valantis 41

#3
Vish WR Profile Picture

Vish WR 23

Last 30 days Overall leaderboard