web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Return a Canvas App We...
Power Apps
Answered

Return a Canvas App Weblink

(0) ShareShare
ReportReport
Posted on by 43

Hi,

Is it possible, from within a canvas app, to return it's web link so I can store this in a variable? 

 

Categories:
I have the same question (0)
  • charlessexton Profile Picture
    Super User 2024 Season 1 on at

    The way I've done this in the past is to store it in an Environment Variable. I don't think there's a function to get the App ID yet.

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-param#address

     

    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/get-sessionid#get-an-app-id

     

  • Alex-M Profile Picture
    43 on at

    Thanks for the suggestion charlessexton. I will keep this in mind. I was however after a solution where an app can register its web link to a sharepoint list record on startup. That way apps running in that environment can use this information to Launch to other apps. 

  • Verified answer
    charlessexton Profile Picture
    Super User 2024 Season 1 on at

    I've figured it out for you.

     

    Add the PowerAppsForMakers connector:

     

    charlessexton_0-1700735067021.png

     

    Then you can get an app's ID with the following code:

    LookUp(PowerAppsforMakers.GetApps().value, "APP NAME HERE" in properties.displayName).name

     

    That code will check all of the apps in the environment and find one with the display name you specify. It will then return the app ID / GUID (it's called the "name" in the connector).

  • Alex-M Profile Picture
    43 on at

    Hi charlessexton,

     

    Thanks for your help this definitely did the trick and I can now dynamically call PowerApps within the Environment. This makes our design more modular design and glad that this connector does not require premium licensing. 

  • Alex-M Profile Picture
    43 on at

    Actually, it is partially working. It seems the code scans every environment not just the one the app is running in and returns the first match it finds. Therefore, if you have the same app name in 3 environments, it always returns the result from the first environment. How can the function return the app ID for a match from the environment it is running in?  

  • charlessexton Profile Picture
    Super User 2024 Season 1 on at

    You can specify the environment by its ID:

     

    LookUp(PowerAppsforMakers.GetApps({'$filter': "environment eq '8476b3c1-ad4e-e00e-be82-d1004cc818a9'"}).value, "App ID" in properties.displayName).name
  • Alex-M Profile Picture
    43 on at

    Thank you charlessexton, this works great now! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard