Others

How to Return to the Previous SharePoint Page After Closing a Power Apps App

Khadija KhanKhadija Khan Oct 8, 2026 869 views

Question details

The user needs to navigate back to the exact SharePoint page they visited prior to launching a Power Apps application, avoiding the use of hardcoded destination URLs.

How to Return to the Previous SharePoint Page After a Power Apps App Ends
Product
Microsoft Power Apps and SharePoint
Device & OS
not provided
Scenario
Managing seamless user navigation between a SharePoint site and an integrated or standalone Power Apps application.
Observed behavior
Seeking a dynamic method to capture the referring SharePoint URL and trigger a return navigation action when the Power Apps session concludes.
Before you start

Ensure you have edit access to your Power Apps application and understand basic Power Fx formulas, specifically how to handle query parameters.

Solution 1Recommended

Pass the Source URL as a Parameter to Power Apps

Dynamically pass the originating SharePoint URL to Power Apps so the application knows exactly where to redirect the user upon closing.

By modifying the launch link in SharePoint, you can append the current page's URL as a query parameter. Power Apps can then read this parameter during startup and use it to navigate the user back when they are finished.

1
Append the URL parameter in SharePoint

Edit the link or button in SharePoint that launches your Power App. Append a query string parameter to the App URL, for example: ?tenantId=...&source=YOUR_SHAREPOINT_PAGE_URL.

2
Read the parameter in Power Apps

Open your application in Power Apps Studio. Select the 'App' object from the Tree view and locate the 'OnStart' property.

3
Store the URL in a global variable

In the OnStart property, add the formula: Set(varSourcePage, Param("source")). This captures the SharePoint URL passed through the link.

4
Configure the exit navigation

Select the 'Close' or 'Exit' button in your app. Change its 'OnSelect' property to use the Launch function: Launch(varSourcePage). This redirects the user back to the dynamic SharePoint page.

Pass the Source URL as a Parameter to Power Apps
URL Encoding: Ensure that the SharePoint URL passed in the parameter is properly URL-encoded to prevent navigation errors or broken links.
Free Microsoft Office alternative

Looking for a Simpler Office Experience? Try WPS Office

While managing complex workflows and app integrations in SharePoint and Power Apps requires advanced technical configuration, WPS Office provides a streamlined, user-friendly experience for your daily document, spreadsheet, and presentation needs. Emphasizing free access, lightweight performance, and high compatibility, it requires zero learning curve for users migrating from Microsoft Office.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded file and follow the simple on-screen instructions to set up the suite on your device.
  3. 3. Open Your Documents: Launch WPS Office and open your existing Microsoft Office files directly, preserving all your original formatting and layouts.
Seamlessly compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation package that runs blazing fast even on older devices.Free built-in PDF editing, conversion, and annotation tools.Familiar, intuitive user interface for a smooth transition with zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use the Back() function in Power Apps to return to SharePoint?

No, the Back() function in Power Fx only navigates to the previous screen within the Power Apps application itself. It cannot control browser history or navigate back to an external SharePoint page.

How do I dynamically generate the source URL in SharePoint?

You can use SharePoint JSON column formatting or dynamic links in a list web part to automatically append the current item's or page's URL to the Power Apps launch link as a query string parameter.

Does the Launch() function close my Power Apps session?

Using the Launch() function redirects the browser to the specified URL. If you are launching in the same tab (by specifying LaunchTarget.Replace), the Power Apps session effectively ends as the browser navigates away from the app.