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 / Obtain current Power A...
Power Apps
Unanswered

Obtain current Power Apps URL

(0) ShareShare
ReportReport
Posted on by 2

Hello! 

 

I'm trying to get the current url Power Apps in a text label. It's possible? 

 

guisanitar_0-1691065483201.png

 

Thanks in advance for your help! 

 

Categories:
I have the same question (0)
  • adam_nbora Profile Picture
    20 on at

    Add a PowerAppsforMakers connection and use the following code:

     

    First(PowerAppsforMakers.GetAppVersions(YOUR_APP_ID).value).properties.appDefinition.properties.appOpenUri

     

    You can get your app id from the app details page

     

     

  • guisanitar Profile Picture
    2 on at

    Hi Adam! 

    Thanks for your help. 

     

    I try the formula and the link redirects me to the Power Apps initial screen. And I want the link for the specific screen where the label is located. 

     

    It's possible? 

     

  • adam_nbora Profile Picture
    20 on at

    That one is trickier as there is no built-in function for this (as far as I know).

     

    I did however make a solution for one of my clients using URL parameters:

    1) In App -> StartScreen, create a switch like below.

     

     

    Switch(
     Param("screen"),
     "screen1",
     Screen_1,
     "screen2",
     Screen_2,
     ...,
     Home_Screen
    )

     

     

    You can name the Param anything you like, as long as you don't have spaces, and the screen names (the ones in speachmarks) with match with the screen below it. This list can go on indefinitely, but ensure the last entry is the screen you want to go to if there is no parameter.

     

    2) After the code I gave you in the label, add:

     

     

     & "?screen=screen1"

     

     

    with "screen" being what is in the Param, and "screen1" the screen name.

     

    Of course you could also have the screen name as a variable, but thats the basics of how it could work.

     

    Please accept this as the solution if this works for you.

  • BaptisteM Profile Picture
    5 on at

    Hello,

     

    I've just found a solution for that purpose using the 'triggerOutputs()' function (text lowered because the default environment has "Default-..." inside the environment id. Don't know if its matter though)  :

     

    https://apps.powerapps.com/play/e/@{toLower(last(split(triggerOutputs()['headers']?['x-ms-client-environment-id'],'/')))}/a/@{toLower(last(split(triggerOutputs()['headers']?['x-ms-client-app-id'],'/')))}

     

    Good day everyone 🙂

     

    EDIT: Wrong post. This behavior is concerning Power Automate. Please ignore my comment. Sorry !

  • RK800-1 Profile Picture
    34 on at

    Hello.

     

    Try to use this guide https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/how-to/deep-linking

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard