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 Apps
Answered

Refresh Data Table

(0) ShareShare
ReportReport
Posted on by

Is there a way I could add a timer or delay Refresh()?  I'm currently working on an app that allows user to upload documents on SharePoint List. Then display the uploaded documents on a data table.

The Upload button OnSelect has the following formula:

UploadToRedFolderLib2.Run(_myID,{file:{name:AddMediaButton3.FileName, contentBytes:AddMediaButton3.Media}}); Reset(AddMediaButton3); Refresh(DocLib)

The DataTable Items property has the following formula:

Filter(DocLib, TrackingNum = _myID)

The Refresh() only pulls existing documents, it does not include the newly uploaded document.  I know I can create a separate button with Refresh(DocLib) but I rather use this once I've exhausted all posibilities. 

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

    You can add a timer control to your application and start it in the same OnSelect property using a variable. Then, execute your Refresh() function using the OnTimerEnd property of the timer.

     

    The Timer Start property would be equal to: varStartTimer

    The Timer OnTimerEnd property will be equal to: Refresh(datasource)

    The Timer Duration property will be equal to the time you want to wait for the datasource to refresh. Default is 60 seconds.

     

    For example with your formula:

    UploadToRedFolderLib2.Run(_myID,{file:{name:AddMediaButton3.FileName, contentBytes:AddMediaButton3.Media}});
    Reset(AddMediaButton3); 
    Set(varStartTimer,true);

    Then add the timer with the properties mentioned above - you can also set the timer's visibility to false so it will not appear in the application.

     

    It isn't all in one formula as you seem to have desired, however, this will not require the user to click another button for a refresh of the datasource.

  • Aethyta Profile Picture
    on at

    @mccarthyk  Thank you,  I set it to 1 second and it worked perfectly.  

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard