Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

How to Use Power Apps Timer Control + Power Apps Start Timer On Button Click

In this Power Apps tutorial, We will discuss the Timer control in PowerApps, its properties, and how to add a Timer control in Power Apps.

As far as we know, Power Apps has various controls for working with canvas apps; apart from that, PowerApps Timer has an interesting control that can be used to execute actions or trigger events at specific intervals or after a certain duration.

We will also see how to use the PowerApps start timer on button click and how to reset or start the timer control.

Moreover, I will let you know some more stuff like:

  • PowerApps timer autostart
  • PowerApps timer duration
  • Power Apps timer countdown

Power Apps Timer Control Or Start Timer in PowerApps

Microsoft provides timer control in Power Apps to determine how the app will respond after a certain time passes.

It has a Duration property that tells how long the Power Apps timer will run in milliseconds. The default duration is 60 seconds, and the maximum duration is 24 hours. Look at the image below:

start timer powerapps

Power Apps Timer Control Properties

Next, we will see the key properties of the timer in PowerApps.

PropertyDescription
DurationWhen considering the duration of a timer in milliseconds, the maximum allowable time is 24 hours, equivalent to the duration expressed in milliseconds. By default, the timer duration is set to 60 seconds
OnTimerEndActions to perform upon the completion of a timer’s operation
RepeatWhether the timer automatically restarts when it finishes running
AutoPauseThis property can automatically pause the timer control when the user navigates to a different screen
AutoStartThis property can automatically start the timer control when the user navigates to the screen that contains that control
OnSelectThese are the actions to be executed when a user taps or clicks on a control.
OnTimerStartActions to be executed when the timer starts to run
ResetRefers to the action of a control returning to its default value
StartYou can clarify whether the time starts
VisibleWhether a control is visible or hidden

Add Power Apps Timer Control

To add a Power Apps timer control, follow the below-mentioned steps. Such as:

1. On the Power Apps Screen, insert a Timer control [+ Insert -> Input -> Timer].

powerapps timer start

2. When you add the Timer control in the Power Apps screen, then it will appear as below. Here, you can see the default Time Duration is 60000 (represented in Milliseconds) or 60 Seconds.

3. Also, as you can see here, the Repeat and Auto start properties are disabled [Off], but the Auto pause property is enabled [On] by default.

Have a look at the below screenshot for the output.

powerapps timer

Power Apps Start Timer on Button Click

Using a simple example, I will show you how to start, stop, and reset the Timer control using a Button in the Power Apps.

Power Apps Start Timer

On the Power Apps screen, add a Button control (Insert -> Button) and rename it to Start Timer, as shown below. Then, apply the formula below to the button’s OnSelect property.

OnSelect = UpdateContext({TimerGo: true})

Where,

  • UpdateContext = It is the function that is used to create a context variable that holds a piece of information temporarily. As in this example, the user is going to select a button a number of times, So this function is used
  • TimerGo: true = TimerGo is the Context variable name, which is specified as true