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 / Creating apps without ...
Power Apps
Answered

Creating apps without environment variables

(0) ShareShare
ReportReport
Posted on by 28

Hello everyone!

 

I've have several apps created using a solution and in a DEV environment. Now the time has come to move to production environment and I just noticed I've never enabled the creation of environment variables in either one of my apps. I was wondering if I could get some advice and pointers about the best approach to fixing this issue?

 

We have built SPO Lists for prod and dev and moving would have been seamless if only I had remembered about the environment variables.

 

Many thanks in advance!

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

    Hi @s4grtz ,

    Enabling environment variables in your apps is an important step to ensure that your apps are configured properly and can be deployed to different environments easily. Here are some steps you can take to fix the issue:

     

    1. Determine the scope of the environment variables: Consider which environment variables need to be created and where they need to be used. It's important to understand which values will change depending on the environment, such as connection strings or API keys.

    2. Choose a method to manage environment variables: There are different ways to manage environment variables in SharePoint, such as using SharePoint lists, using Azure Key Vault, or using a custom solution. Choose a method that best fits your needs and skills.

    3. Implement the solution in your apps: Once you have determined the scope and the method to manage environment variables, you will need to update your apps to use the environment variables instead of hard-coded values. This can be done by modifying your code to read the values from the environment variables.

    4. Test and deploy: Once you have implemented the solution and updated your code, test your apps thoroughly to ensure that they work as expected. Deploy the updated apps to your production environment.

    5. Document the changes: Document the changes you made to your apps and the method used to manage environment variables. This will help you in the future when you need to update or troubleshoot your apps.

     

    In summary, enabling environment variables is an important step to ensure that your apps are properly configured and can be deployed to different environments easily. Choose a method to manage environment variables that best fits your needs and skills, update your code to use the environment variables, test thoroughly, and document the changes made.

     

    Best Regards

    Cheng Feng

  • Verified answer
    manojpatel20dec Profile Picture
    17 on at

    -Document all your environment specific data

    -Create the required environment variables as per document prepared, ensure to add them along config solution

    -After Setting the current value and remove that value from solution, do not set the default value.

    -update env variable references across hard coded stuff

    -Deploy to next instance

    -Create an unamanged solution in next instance and add add the current value for all your environment variables

    -Repeat same across other managed instances.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard