Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Deployment of environment variables

(0) ShareShare
ReportReport
Posted on by 27

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.
  • Lars_Martin Profile Picture
    27 on at
    Re: Deployment of environment variables
    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.
  • v-xida-msft Profile Picture
    on at
    Re: Deployment of environment variables

    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,

  • Verified answer
    Lars_Martin Profile Picture
    27 on at
    Re: Deployment of environment variables

    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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard