cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
carlilelance
Advocate III
Advocate III

SharePoint document Library refresh

Is there a way to trigger a refresh on a SharePoint document library? 

 

I have a flow that creates an Excel document in a SharePoint document library and populates it with column headers and rows of data. Creating a document through flow doesn't seem to trigger a refresh of the document library. This means the only way I know of seeing the newly created document is through a manual page refresh by the user. Another question already states that you cannot refresh a SharePoint page using flow. Is there a way to trigger a refresh on a SharePoint document library? 

1 ACCEPTED SOLUTION

Accepted Solutions
eliotcole
Super User
Super User

Hi, @carlilelance, there is not a way to trigger that, no, because it is actually refreshing in the background.

 

The document IS updated and made, but they may not see it ... immediately. It will refresh in time ... it's just set to a reasonable level so as not to overload people's browser sessions or apps.

 

The way to work around this is to send the user a notification to say that the item is ready and either link directly to it, or to tell them to tap F5 or pull down on their mobile app (or whatever refreshes that).

 

View solution in original post

3 REPLIES 3
eliotcole
Super User
Super User

Hi, @carlilelance, there is not a way to trigger that, no, because it is actually refreshing in the background.

 

The document IS updated and made, but they may not see it ... immediately. It will refresh in time ... it's just set to a reasonable level so as not to overload people's browser sessions or apps.

 

The way to work around this is to send the user a notification to say that the item is ready and either link directly to it, or to tell them to tap F5 or pull down on their mobile app (or whatever refreshes that).

 

What is the reasonable level? I came back two hours later, to test the refresh, and my document still didn't show up without a manual page refresh. Normally when you create a document the manual way, it appears acceptably quick. There must be something on the control that doesn't trigger when you use power automate to create a document vs. doing it manually. 😞

Ah, I see what you mean. Well, I'm not the person that codes it, so unfortunately I couldn't tell you.

 

Maybe ... just maybe ... there's a hack to be made, here.

 

You could try adding a column to the library, called 'nowt' (which I think should be visible), and then when ever you add a file to the library with this process, update the 'nowt' column for item 1 in the library (or get files, and update the oldest one there) with a guid() expression. Maybe that'll force it as it's updating a list item that should be current on the screen.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,284)