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 / Is configuring an Idle...
Power Apps
Answered

Is configuring an Idle Timeout or Inactivity Timeout possible in PowerApps?

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to have my PowerApp trigger the Exit() function if the device records no keystrokes, presses no buttons, etc after 10 minutes or so.

 

Is there any function or way to check for Inactivity or idle time?

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    It's possible, but not a simple thing to do. There's no "global" event handler, so you'd need to, in every control that the user can interact with, update its OnSelect (or OnChange) property to update a "last activity time" with the value of Now(). You'd then need to have a timer that every minute checks the last activity time, compare it with the current time, and if this time is greater than 10 minutes, exit the app.


    The timer properties would probably be along the lines of this:

    Duration: 60000
    Start: true
    Repeat: true
    OnTimerEnd: If(DateDiff(lastActivityTime, Now(), Minutes) > 10, Exit())

    On each button, which will likely have some action on its OnSelect property, you'd need to update it to also update the last activity time:

    OnSelect: Set(lastActivityTime, Now()); <previous OnSelect action>

    Likewise, in all text inputs, you'd use its OnChange property to do the same:

    OnChange: Set(lastActivityTime, Now())

    In all other controls (slider, rating, listbox, anything where the user can interact), you'd need to have a similar action to update the last activity time.

     

    So, while it's possible to do this scenario, it's a lot of work. If you feel that this should be supported natively, please consider creating a new feature request in the PowerApps Ideas page.

  • gog Profile Picture
    47 on at

    Hi all, 

     

    I am looking for exactly this feature.

    Anyone tried it and it works? Is it difficult to get it working?
    Please advice

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This works really well.

    Instead of Exit. I created a "time out" screen to Navigate to.

    That will bring me back to a work screen. and reset the timer control again.

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard