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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / automatic Refresh Fail...
Power Apps
Unanswered

automatic Refresh Failure after File Upload with Flow

(0) ShareShare
ReportReport
Posted on by 4

Dear Community,

I am new to Power Apps and have encountered the following problem.

I'm experiencing a significant issue with the functionality of my application, specifically concerning the automatic refreshing of a document library after file uploads. The expected behavior of my application upon file upload is for the document library to automatically refresh, presenting the most recently uploaded files without requiring any manual input.

However, the application currently does not perform this function, even though I run the refresh() function. Instead, to view the updated content, I am required to manually activate the refresh icon after every file upload, which disrupts the seamless user experience I aim to provide.

The objective is to develop an event-driven mechanism that triggers an automatic update or refresh in the document library upon successful file upload, thus negating the need for manual refresh.

Here is a piece of code I am running when pressing the Upload-Button in my application.

 

 

If(
 PAUploadFlow.Run(
 JSON(
 colUploadDocuments,
 JSONFormat.IncludeBinaryData
 ),
 varCurrentKind.ID
 ),
 Clear(colDocs);
 Reset(UploadDocs);
 Set(
 varPopupVisible,
 false
 );
 Refresh('Kinder Dokumente')
)

 

 

Here is a loom-link, where I recorded my Issue and show the application in detail.
I hope you can help me with this issue

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @levil101 ,

     

    The If statement is redundant:

    PAUploadFlow.Run(
     JSON(
     colUploadDocuments,
     JSONFormat.IncludeBinaryData
     ),
     varCurrentKind.ID
    );
    Clear(colDocs);
    Reset(UploadDocs);
    Set(
     varPopupVisible,
     false
    );
    Refresh('Kinder Dokumente')

     

    Best regards,

  • levil101 Profile Picture
    4 on at

    Hey, thank you for your reply. This sadly doesn't fix the issue. I still need to refresh manually.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @levil101 ,

     

    This is odd. I can easily refresh the Gallery:

    vjefferni_0-1691572012197.png

    Maybe you can try and change the order of those formulas:

    PAUploadFlow.Run(
     JSON(
     colUploadDocuments,
     JSONFormat.IncludeBinaryData
     ),
     varCurrentKind.ID
    );
    Concurrent(
     Refresh('Kinder Dokumente'),
     Clear(colDocs),
     Reset(UploadDocs),
     Set(
     varPopupVisible,
     false
     )
    )
    

     

    Best regards,

  • levil101 Profile Picture
    4 on at

    It still doesn't seem to work on my site. I am not sure why. Maybe this has something to do with how big the file is.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard