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 Platform Community / Forums / Power Apps / Set function to run at...
Power Apps
Answered

Set function to run at a specific time

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I'm trying to have a my data source refresh automatically every hour on the 05 minute mark, as the data source will be updated with new data on the hour. Is there a way to schedule functions for a specific time of day rather than using a timer? The timer starts when the user opens the app so it wouldn't sync up to real time properly.

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Your only option for timing things is through a timer.

    I would suggest that you set a timer to autorun for a 1 minute duration.  In the timer OnTimerEnd action, you can put the logic to sync with real time.  

    ex.

        If(Minute(Now())=5, Refresh(yourDataSource))

     

    This will then look to see if it is minute 5 (5 after the hour) and then it will perform the refresh.

     

    I hope this is helpful for you.

  • KrishnaV Profile Picture
    5,023 on at

    Hi @Anonymous ,

     

    Let me take a min to explain how the data source plays a role in PowerApp, Datasource will be loaded with an associated list/table in the App. PowerApp loads the data sources on the app as and when user open the App and the same can be refreshed during the user session time. Having said that the scope of the datasource is at app level can't be accessed / updated outside the app.

    In this scenario, only timer is the best solution.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard