web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Force sharepoint page ...
Power Automate
Suggested Answer

Force sharepoint page refresh to update image web part ?

(0) ShareShare
ReportReport
Posted on by 75

As you can see from my question in the sharepoint forum : https://answers.microsoft.com/en-us/msoffice/forum/all/sharepoint-page-image-web-part-not-refreshed/5730730b-3ecf-48ee-a3c7-cf622445d619?messageId=1d02795f-8817-4484-b0ce-169a5c85e32a

 

I have a power automate flow that will generate pictures that are saved/overwrite in a sharepoint library. (can be sitepage or another library).

I also have a sharepoint page that show theses pictures in an image web part.

Unfortunately, the pictures are not refreshed, or at least there is a big delay for the page to sync back. I understand it's part of the way sharepoint are built.

I was hopping there was a way to ask sharepoint to refresh that page. Trigger a refresh instead of waiting for the delay trigger. May be using rest-api, but I couldn't find that information.

Anyone have an idea ?

Thank you

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    The simple answer is that you cannot do this with Power Automate. The issue is more related to the browser cache than anything else. Here are tips for getting the browser to refresh the images: Overcoming Persistent Image Caching: How to Ensure Visitors See Your Latest Website Changes? | by Gulshan N | Medium
  • Watever Profile Picture
    75 on at
    Thank you David,
     
    That's what I was thinking.
    What is weird is that even if I can see the new image in the browser and refresh it there, it will not be refreshed in the page.
     
    I could change the filename or add version to it, but not sure how I would do that in the sharepoint page automatically.
  • Suggested answer
    Watever Profile Picture
    75 on at
    In case anyone is searching for this.
     
    The way to do it, is to rename the filename of the file you are uploading to. If the name is different, it will be downloaded instead of using the cache.
    But if you delete and reupload the file with the same filename, it won't work cause the sharepoint page won't find the pictures anymore. It need to have the same ID not identifier.
     
    To make this work, I created a flow, that search in the specific folder for the file that start with the filename I want to update.
    Exemple : Search in "Folder 1" for "Filename1" even if the filename is Filename1_somethingelseblahblahblah.jpg", you want to find it.
    Then you will update your new file/pictures using the full filename. So the updated pictures will be named Filename1_somethingelseblahblahblah.jpg, meaning it will have the SAME ID as the previous version.
    Then you will rename that file with a incremental trigger or timestamp, etc...
    I prefer to use the timestamp, that way you know when it was updated, and easy to implement.
    (You need to use an HTTP Request to rename a file in sharepoint, unfortunately it's not an easy step, but not really complicated once you know and can do copy-paste).
     
    Then the sharepoint will refresh the cache with that new version, so you will end up with an updated page.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard