From your Canvas app, if you want to exit the app and go to home screen or exit and sign out the account, we can use the Exit function.

Exit the App without Sign out:
- The Exit function exits the currently running app. The user is returned to the list of apps. The user can then select another app to open.
- Exit stops any further formula evaluation. Any function calls chained with a semicolon operator after the Exit aren’t carried out.
Formula : Exit()

Exit the App and Sign out:
- Use the optional Signout argument to sign the current user out of Power Apps. Signout is useful when devices are shared to ensure user security.
- Exits the current app and the user is signed out. The user will need to sign back in with their credentials before running an app.
Formula : Exit(true)

🙂
![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)


Leave a comment