Forum Discussion

johnjohn-Peter's avatar
johnjohn-Peter
Iron Contributor
Aug 27, 2024

Can we auto refresh a modern sharepoint online page without the need to use modern Script editor web

I have a modern sharepoint online page which show data from multiple custom lists using PnP Modern search web part. the issue with the PnP Modern search web part, is that it does not automatically update the list of items (incase new items are added/deleted to the underlying lists) unless you manually refresh the web page.

so is there a way to auto refresh a modern sharepoint page each let say 5 minutes? the only solution i found is to use something such as :-

https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-script-editor/README.md

but using this appraoch will allow end users to embed whatever script they want which will pose a security issue.. so how i can auto refresh a modern sharepoint page , without the need to embed script and hence allow end users to embed any script they want?

Thanks

No RepliesBe the first to reply

Resources