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 / Timer control to refes...
Power Apps
Answered

Timer control to refesh control on a specific time

(0) ShareShare
ReportReport
Posted on by 88

Hi everyone

 

I am building an app were i need a timer to reset 6 Checkboxes for every 24 hour. 
- So everyday at 06:00, i would need these 6 checkboxes to be reset/cleared so they are at no value.

Any suggestions on how i manage the timer control to precisely reset at 6AM every day? 

Categories:
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Snow_89 you could set a variable and have timer reset the boxes.

     

    Here is one, set the seconds from now to the next 6:AM on the start of the 

     

    Set(varSecondToGo, 
     If(
     Hour(Today())>=6, 
     DateDiff(Today() + 1 + (6 / 24), Now(),Seconds),
     DateDiff(Today() + (6 / 24), Now(),Seconds)
     )
    )

     

     

    Set the time control duration to this, 

    varSecondToGo*60 //miliseconds

    and the OnTimerEnd = UpdateContext({lvarRestCheckBox:false})

    the Checkbox default to lvarRestCheckBox

     

    Once the time has gone through its cycle it will rest the box. the seconds until 6AM is evaluated every time the app loads

     

    Hope this helps,

    R

  • Snow_89 Profile Picture
    88 on at

    Hi Rubin_boet

    Thank you, i will try to implement this and see how it goes, i will let you know tomorrow.

    How do i make it work on multiple checkboxes, ontimerend ? 

    Checkbox2_21

    Checkbox2_22

    Checkbox2_23

    Checkbox2_24

    Checkbox2_25

    Checkbox2_26

    if you look at the picture attached you can see i already use the default with a lookup, does this affect the setup? 

    Image 1.4.png
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Snow_89 ,

     

    Results returned from the LookUp function should all be boolean, so you could simply combine them with the variable together with And function or using && operator to make sure when the variable is false all the Checkboxes will be false/uncheck.

    LookUp(...) && lvarRestCheckBox

     

    However, since you have Patch in both OnCheck and OnUncheck properties which I assume you will need to update the data source at 6 AM everyday, this two properties will not be auto-triggered by the variables. If you do need to update to the data source, please consider use a flow to clear all those different tables/columns at 6 AM, Power Apps will not be able to achieve that need with one single action.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard