We have a modern sharepoint page, and we have adding many lists' views to it using the List modern web part:-

enter image description here

but we have noted that any modifications we make to the underlying lists (such as add, edit, delete items) will not be pushed inside the list modern web parts... so as a fix can we force the modern page to auto-refresh each N minutes?


  • do you care if the entire page is refreshed or do you require that only the list webpart gets refreshed? Refreshing the entire page will be easier and more reliable to implement. Feb 21, 2021 at 0:24

1 Answer 1


You could use Embed web part instead of List web part.

  1. On the Embed web part panel, enter the url of list in the Website address or embed code box.
  • https://***.sharepoint.com/sites/site_name/Lists/list_name/AllItems.aspx enter image description here

enter image description here

  1. Republish page

  2. When you making to the underlying lists (such as add, edit, delete items), the Embed web part will update automatically.

------------------------------ Updated Answer ---------------------------

Please the following steps:

First, deploy the Modern Script Editor Webpart in the SharePoint Online environment.

More information, Please refer to this article:

enter image description here

Then, add the Modern Script Editor Webpart to your SharePoint Online Page.

enter image description here

enter image description here

Paste the below code:

<script type="text/javascript">
function refreshPage(){
setTimeout(refreshPage, 6000);

enter image description here

Finally, Publish/Republish page.

  • 1
    the Embed works quite different than the List where on the List web part you have the option to hide the command bar + control the number of items to be shown... so that why i did not use the Embed, as i do not want the command bar to be shown inside the modern page..
    – John John
    Feb 17, 2021 at 10:38
  • Hi, John. I have updated my answer. Hope this can help you to solve issue. Have a nice day! Feb 19, 2021 at 0:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.