Can the exit() formula be used to exit the app and redirect the user to a specific page rather than the apps list.
For example:
I have an app that is launched by clicking a link in a SharePoint page
I want to close the app and return back to the SharePoint page
Solved! Go to Solution.
Hi @buildbod,
No, I don't think that will work.
"
The Exit function exits the currently running app. The user is returned to the list of apps, where they can select another app to open.
Exit()
"
And currently it only accepts one parameter, boolean value of logout.
Exit(Logout)
For example, Exit(true), which then would have the app automatically log out the current user and navigate to the login screen of PowerApps.
A workaround here is:
Add a launch function before the Exit(), specify the SharePoint Address within the Launch(), for example:
Launch("https://powerusers.microsoft.com");Exit(true)
This would open a new webpage of the SharePoint page, not the original one.
Hope this is helpful.
Regards,
Michael
Hi @buildbod
Try this, it worked for me.
Launch('https://your.redirect.link", Blank(), LaunchTarget.Replace)
Ron
Hi @buildbod,
No, I don't think that will work.
"
The Exit function exits the currently running app. The user is returned to the list of apps, where they can select another app to open.
Exit()
"
And currently it only accepts one parameter, boolean value of logout.
Exit(Logout)
For example, Exit(true), which then would have the app automatically log out the current user and navigate to the login screen of PowerApps.
A workaround here is:
Add a launch function before the Exit(), specify the SharePoint Address within the Launch(), for example:
Launch("https://powerusers.microsoft.com");Exit(true)
This would open a new webpage of the SharePoint page, not the original one.
Hope this is helpful.
Regards,
Michael
Ok thank you. I'm using the work around already though it is a little clunky as you end up with two tabs. One with the closed app (which redirects to the app list) and one with the SharePoint page. Ideally the function would allow for:
exit("url of page")
In the case of an app launched from the views in a SharePoint list then the behaviour needs to be automatic i.e.
exit("return to list from which the app is launched")
Worked for me!
Thanks!
Launch("https://powerusers.microsoft.com");Exit(true)
How can i do procedure if I would like to ask to the user "Do you really want to leave the app? before launched to a new web pagE?
Maybe have the current Exit button open a "Confirmation" Screen wtih "OK"/"Cancel" buttons, and then relocate the 'Exit..." logic from Exit button to the "OK" button on confirmation screen. "Cancel" would just close Confirmation Screen ?
Apps now include actions on close
Hi @buildbod
Try this, it worked for me.
Launch('https://your.redirect.link", Blank(), LaunchTarget.Replace)
Ron
Just what I needed , Thanks
Many thanks!!! That worked exactly as needed.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
User | Count |
---|---|
205 | |
98 | |
58 | |
51 | |
42 |
User | Count |
---|---|
260 | |
158 | |
84 | |
79 | |
57 |