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 / 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,679 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard