Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Creating Flow to auto-update photo in Image Viewer web part

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I am trying to create a flow to automatically change the photo on an Image Viewer webpart on my Sharepoint site. 

 

I have done half of this flow by creating a List of items with photo attachments. When the 'Upload' column has todays date, the attachment is copied over to a Document Library.

 

I would like this document library to have one photo in it at any time, and with a common URL that is linked to the Image Viewer. That way, when the date matches today the photo that is copied across automatically changes what is shown in the Image Viewer webpart.

 

Is there a way to link the Image Viewer webpart to a common URL for the Document Library? 

  • HF1 Profile Picture
    4 on at
    Re: Creating Flow to auto-update photo in Image Viewer web part

    Thank-you, this works perfectly for my needs!

     

    I can use the flow to automatically update the document library with todays image, and the highlighted content web part will then update automatically with it 🙂 You legend

  • Verified answer
    Expiscornovus Profile Picture
    32,102 Most Valuable Professional on at
    Re: Creating Flow to auto-update photo in Image Viewer web part

    Hi @HF1,

     

    Maybe you can use a Highlighted Content Web Part instead of an Image Viewer? With this web part you can dynamically load an image from a library and sort it by the most recent and limit it to 1 item.

     

    highlightedcontentwebpart.png

     

    Or do you have specific requirements that this web part won't work.


    However, if you want to update it with a flow you can use an Send an HTTP request to SharePoint action with SavePageAsDraft method.

     

    Below is an example of that approach with a File Viewer web part in another thread:

    https://powerusers.microsoft.com/t5/Building-Flows/Publish-dynamic-document-with-File-Viewer-in-a-SP-Page/m-p/829372/highlight/true#M115924

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1