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

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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard