cancel
Showing results for 
Search instead for 
Did you mean: 

Make "App ID" optional on Canvas App control

When putting a Canvas App via Control on the form, the "App ID" is a required parameter. But, since the App ID of a Canvas App is changing when transporting to a different environment, the "App ID" must be changed, whenever the form, which is including the control, is transported to another system.

That's really annoying and could be changed, if (only) the unique name could be used (and that should not change when getting transported).

Status: New
Comments
Boneckrh19
Kudo Kingpin

Or at the very least, we need to be able to retrieve the current environment ID. Idea for that here:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Get-environment-ID-within-Flow-or-app/idc-p/124...

That way you can have an if statement looking at the environment ID and switching between app IDs.

FrancoisK
Regular Visitor

Or maybe an "environment variable" that could be retrieved from within an object in the app?

myAppId = ThisEnvironment.AppId

...

so code running in PowerApps could behave differently depending on the known environment?

This would also avoid having to change AppId reference manually when export/importing in different environment.