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

Can't use Exit()

(1) ShareShare
ReportReport
Posted on by 9

 

I used Exit(true) in exit button for close my PowerApps, but when I clicked the button it didn't work.

 

This link is about my problem.

https://www.mx7.com/view2/zTEWtUyDyKxQlZ2z 

Categories:
  • timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    From my experience, the Exit function only works in mobile apps, and when you run an app in a browser. Are you attempting to call the Exit function when you run your app in the designer?

  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @sorrowsweet,

     

    The Exit() function only works when the App is running, if you clicked the corresponding button under Edit Mode, it won't work.

    For testing, please save this App first, then under PowerApps Studio Desktop version, click:

    (File->)Open->Find your App and then click it to load, when the App is in running mode, click the Button configured with the Exit() function would then close the running App, and navigate to the App list.

    If Exit() has been configured with boolean true value, then it will logout the current user, and back to the sign-in screen.

    94.PNG

    Function reference:

    Exit function in PowerApps

    Regards,

    Michael

  • sorrowsweet Profile Picture
    9 on at

    Thank you. Smiley Happy

  • Pasindu Profile Picture
    2 on at

    hi @v-micsh-msft

     

    I found that Exit(True) function is not logged out the current user

    It was work that way until end of last year and I was using it , 

    but now I found that it closed the running app and redirect to the https://home.dynamics.com/ page with user login 

     

    I am having big issue with this now, any idea to log out the user from power app function 

     

    Regards

    Pasindu

     

  • Andy_Hill_srft Profile Picture
    2 on at

    I'm also having this as an issue - ending up in a Dynamics 365 page - how does one close a window completely?

     

    Andy

  • sorrowsweet Profile Picture
    9 on at

    I solved this problem by this comment.

     

    Capture.JPG
  • mcorsaaiincs Profile Picture
    15 on at

    I find (in 2022) that the Exit() function and Exit(true) do not work on Android PowerApps platform apps at all.  I press the Exit or Exit and sign out option, and the button just hangs there, as if the function never finishes.

     

    Further, it's buggy in the browser version, because I can press Exit(true) to sign out, and it does not sign me out right away; the time it takes to invalidate the session token and sign me out seems to greatly vary within the browser app published.

     

    I'm not willing to switch back to the Windows PowerApps platform app to host the app and run from there, because ironically when I tested that, last year, it was the least developed and functional platform for PowerApps of all compared with iOS and Android platforms.  It was just really buggy.

    Screenshot_20220309-152829_Power Apps.jpg
  • RH-Wong Profile Picture
    22 on at

    Hi, 

     

    Experiencing the same issue on iOS. Desktop version seems to be working fine. 

     

    There are other users experiencing the same problem on this thread Exit function stopped working - Power Platform Community (microsoft.com)

     

    But we don't seem to be getting any attention. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Exit() is not working only if "Confirm Exit" is turned off.
    Go to App. Turn it On.
    Now when you press Exit, it will ask for Confirmation (Pop-Up)
    So, its working in different way. Please Check attached Pics



    01.png
    02.png
    03.jpg
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Exit() is not working only if "Confirm Exit" is turned off.
    Go to App. Turn it On.
    Now when you press Exit, it will ask for Confirmation (Pop-Up)
    So, its working in different way. Please Check attached Pics

    01.png
    03.jpg
    02.png

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