cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sorrowsweet
Frequent Visitor

Can't use Exit()

 

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 

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
timl
Super User III
Super User III

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?

v-micsh-msft
Community Support
Community Support

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you. Smiley Happy

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

 

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

 

Andy

I solved this problem by this comment.

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (37,780)