In case you imported a Dataverse solution in the past, you might have observed that, during the solution import, the Environment Variable doesn’t appear in the configuration options if it already has a ‘Default Value’ set.

This created some confusion and ambiguity on how environment variables were obtaining their values and limited the environment variable update experience.

Now, makers will be able to validate the values that are going to be used in their components (such as their apps) in the target environment. 

Each environment variable in the solution will have one of three value sources in this new experience: solution value, target environment value, or default value.

Also, in the upcoming release, the default experience will no longer export environment variable values in your solution. This makes it easier to follow best practices and avoid inadvertent mistakes.

A new “Export value” toggle within the environment variable settings will allow you to opt-in to exporting the value, if needed.

This new feature will not impact existing environment variables’ current behavior. But for every new environment variable created (or if you manually turn off the toggle), if you would like to dynamically change the values of your environment variables every time you import or deploy, you won’t have to clear the values since they will already be excluded.

Refer the official blog post here

🙂

Advertisements
Advertisements

One response to “Power Platform | Environment Variables | Always Visible and Editable during Solution Import and Pipeline Deployments”

  1. obsoquasi Avatar
    obsoquasi

    This is supposed to work like this. However currently (Juli 2024) it doesn’t. While on the first deployment you are asked to specificy the value, the solution will fail to re-deploy on the second deployment (“Cannot insert duplicate key in object ‘dbo.EnvironmentVariableValueBase’. “). I hope it gets fixed soon…

Leave a comment