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 do I use environme...
Power Apps
Unanswered

How do I use environment variables that I want to be different in Dev vs Testing vs Production environments?

(0) ShareShare
ReportReport
Posted on by 193

I haven't had much experience with using environmental variables, but I understand where they are useful and I am trying to implement them in my solution more. I am a little confused about how to handle environmental variables during deployments. 

 

I have a canvas app in my solution that includes a button that launches a link to a model driven app within the same solution. I have to use the App ID in the URL so I have made the App ID for the model driven app into an environment variable. I used that variable in the Fx function for the button. 

Now when I deploy from dev to test, I need to update that variable to the App ID of the app in the test environment. But now every time I need to deploy from dev to test, won't I need to go back to the test environment to adjust the App ID? I want to have that variable set for each environment, but then not have it change. How do I accomplish that?

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @cah2035 - when importing a model driven app with an integrated canvas app into a different environment, the target environment will first search for the canvas app name to identify the correct app.

     

    This is also outlined in the documentation: 

     

    Amik_1-1706738888516.png

     

    Image ref: https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/embedded-canvas-app-add-classic-designer

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard