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 / Deployment of environm...
Power Apps
Answered

Deployment of environment variables

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm trying the usage of the new environment variables and experience a behavior I'm not sure what to think about it.

  1. I created an environment variable with a default value and a current value in DEV. 
  2. I added the variable to a solution and deployed it to the target environment.
  3. I adjusted the current value in the target environment as it is system-specific.

Question:

Why is the current value overwritten by the next deployment of this solution?
 
I would expect the environment variable is updated but the current value remains the same.
I have the same question (0)
  • Verified answer
    Lars_Martin Profile Picture
    on at

    Failure was in front of the display.

    I created the current value within the solution and did not remove it before exporting the solution.

     

    2019-11-04 19_16_31-.png

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @LarsMartin ,

    Could you please share a bit more about your issue?

    Do you mean that the current value is overwritten automatically when deploying your solution to another Environment?

    Further, do you want the current value to remain the same across different environments?

     

    Based on the issue that you mentioned, I think you have some misunderstanding with the Default value or Current Value of Environment Variable.

    Currently, within PowerApps, only the Default value of Environment variable could remain the same across different environments. The Current value is scope to your current PowerApps environment, when you deploy the Solution including Environment variable to another different Environment, the Current value would be lost.

    Please check the following blog for more details:

    https://powerapps.microsoft.com/en-us/blog/environment-variables-available-in-preview/

     

    If you want the Environment Variable value to remain the same across different environments, please consider set a Default value for it rather than Current value.

     

    Best regards,

  • Lars_Martin Profile Picture
    on at
    Hello,

    as already stated above it was my fault.
    I created the current value within the solution and did not remove it before exporting the solution. As result the current value was overwritten in the target environment.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard