Notifications
Announcements
Hi,
Is it possible, from within a canvas app, to return it's web link so I can store this in a variable?
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
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.
I've figured it out for you.
Add the PowerAppsForMakers connector:
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).
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.
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?
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
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268