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 Automate
Unanswered

Building a MS Flow

(0) ShareShare
ReportReport
Posted on by 381

I would like to build a flow that will update an image on the homepage of my Sharepoint site when I upload a new image to the document library. 
Each Monday I upload a new document to a document library. Then I go to the homepage of my Sharepoint site and edit the web part to link to the recently uploaded image file so that the new image displays. 
I believe my ‘trigger’ is when a File is created or updated. I am unclear what my ‘action’(s) is. 

Categories:
I have the same question (0)
  • Verified answer
    dvstrien Profile Picture
    25 on at

    Hi @PeggyLang 

    Instead of updating the link on your webpart I would have the webpart link to a file in a different document library with a generic name that won't change name e.g. homepageimage.jpg 

    The flow would be triggered on upload of a new file in the document library (when a file is created)

    then get the file content of the image

    next delete the existing homepageimage.jpg file

    next create a file in the location and with name of your homepageimage file 

     

    Hope this helps, please mark as a solution if it does.

     

    dvstrien_0-1596506998403.png

     

  • PeggyLang Profile Picture
    381 on at

    Hi @dvstrien 

     

    Thank you!  I had not thought of that.  I will definitely work on that today.  Thanks so much for responding and making me think outside the box.  I'll come back here and let you know if I was able to successfully build this.

  • PeggyLang Profile Picture
    381 on at

    @dvstrien The flow runs successfully, however, the image does not change on my home page.

     

    I'm not sure why?

  • PeggyLang Profile Picture
    381 on at

    @dvstrien I believe I have an idea.  It would seem that Sharepoint is returning the 'cached' file which is why the image is not updating on the SP site.
    SO . . . is there a way to force SP to not use 'cached' files?  
    OR
    is there a way to add a dynamic element to the file name?  i.e., a # that is actually a counter function?

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard