cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeggyLang
Helper IV
Helper IV

Building a MS Flow

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
dvstrien
Advocate II
Advocate II

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

 

View solution in original post

4 REPLIES 4
dvstrien
Advocate II
Advocate II

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

 

View solution in original post

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.

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

 

I'm not sure why?

@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?

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (43,438)