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 Platform Community / Forums / Power Apps / How To redirect from P...
Power Apps
Unanswered

How To redirect from Powerapps Forms?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am calling one power apps form from another power apps form on the button click. for that, I am using the below formula.

 

https://web.powerapps.com/apps/{appId}?{query}&Source=SourceURL

So when the new form opens I am saving the data in the list and after saving it, I need to redirect to the same page where I clicked to open this page, I have tried Source Query string but it's not redirecting to the source URL.

 

It is fine to close that tab also. any solution to close the current tab from powerapps?

 

Any help would be appreciated, Thanks in Advance.

 

 

Categories:
I have the same question (0)
  • UdayAdhikari Profile Picture
    450 Most Valuable Professional on at

    Hi @Anonymous - unfortunately, in Power Apps you can't redirect with "Source=SourceURL" like in SharePoint. I can think of following 2 options:

    1) Either open the 2nd app using Launch function in a new tab and close the tab when clicked on a button like Save/Submit (references: Launch & Exit) or

    2) Use a technic called deep linking to pass parameters in URLs (query string) (references: Deep Linking in Power Apps)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @UdayAdhikari ,

    I have tried the Exit() method, but it's not closing the tab, it's taking me to the "Home.dynamics.com". I need to close the tab or else need to redirect to the old URL? any solution for that?

  • UdayAdhikari Profile Picture
    450 Most Valuable Professional on at

    @Anonymous - sorry for the confusion on my part. Unfortunately, there is not a direct way to close tab from Power Apps at the moment but you can use Launch function to implement your scenario.

    Steps:

    • In 1st app on button click add 

     

    Launch("https://apps.powerapps.com/play/Your1stAppGUID?tenantId=YOURTENANTGUID", {screenaName: "EditScreen", itemId: 1}, LaunchTarget.Replace)​

     

    Note: Replace "EditScreen" with your 2nd app screen/page that you want to open; 1 with list item id that you are trying to update; also rename the parameter names if you so desire

    • In 2nd app > OnStart add code to extract values from parameters as described in Deep Linking in Power Apps and navigate to the screen where you have save button
    • In 2nd app > Save button after you Save code add below code

     

    Launch("https://apps.powerapps.com/play/Your2ndAppGUID?tenantId=YOURTENANTGUID", {screenaName: "DashboardScreen"}, LaunchTarget.Replace)​

     

     Note: Replace app id, tenant id, screen name, add new parameter/s as needed

    • In 1st app > OnStart add code to extract values from parameters as described in Deep Linking in Power Apps and navigate to the screen where you first started with

    Note: The Replace parameter in Launch function causes the app to open in the same tab.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard