auto updating of sharepoint page

help 21 Reputation points
2022-09-15T08:57:07.643+00:00

We created a modern page for a sharepoint site with the help of power automate and the page includes data as per our requirement.
If we make any changes in the data or edit the data(for eg description) after creating the page what should be done for the page to get auto-updated with the new information.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,333 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xuyan Ding - MSFT 7,566 Reputation points
    2022-09-16T05:14:16.327+00:00

    Hi @help ,

    Maybe you can add a script editor web part and add a reload script to refresh page.

    <script type="text/javascript">  
       
    function refreshPage(){  
    location.reload();  
    }  
    setTimeout(refreshPage, 60000);  
        
    </script>  
    

    Generally speaking,the SharePoint Script Editor can not be used on modern pages, but there is a "modern" script editor web part that you can use, if it is absolutely necessary.
    It is also uncertain whether this web part can be used depending on the version of SharePoint or the type of site.
    E.g:In the site collection with modern "Communication site" as root Website template in SharePoint 2019 On-Premise it is not possible to use Script Editor.
    This articel Add The Script Editor Webpart back to SharePoint Modern Experience will help you for more detial.
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    If you don't have access to the Script Editor Webpart, you might need to consider starting with Power Automate. Create a new flow or modify the flow based on the original, refresh the entire page when an item is modified or edited. Since we don't know the process of your flow creation, you can ask about the flow in the PowerAutomate community for more professional help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.