Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

(1) ShareShare
ReportReport
Posted on by 1,546 Super User 2024 Season 1

last month , i went to all the environment variables inside my Dev environment's solution and i set their Export checkbox to No. but today i check those settings since i added a new environment variable, and i noted that all the solution environment variables inside my Dev environment have their Export checkbox set to Yes, as follow:-

 

johnjohnPter_0-1720453974734.png

 

 

 

 

any advice why those were changed automatically for me? now i want to set them to No, because i want to export the solution from Dev to PROD environment. any advice why this happened and how i can avoid ti in the future?

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @johnjohnPter That makes sense now.

    When you explicitly add an Environment Variable to a solution in the maker portal, you get this dialog which prompts you to select whether you wish to include the current value of the Environment Variable into the solution (as well as it's definition). If you choose to include the current value, then it seems that the 'Export Value' flag on the Environment Variable definition is automatically set to Yes

    parvezghumra_0-1720873545506.pngparvezghumra_1-1720873589516.png


    So it seems that the 'Add Required Objects' option is including the Environment Variable into your solution using this option by default because your App has a dependency on the Environment Variable. 

    As a general rule of thumb, I recommend to never use the 'Add Required Objects' option. Because this option detects all objects that your existing solution components are dependent upon and includes them into your solution. As a best practice, you should only ever include your custom objects (unmanaged) that you have created from scratch or any managed objects that you have customised into your solution. Otherwise you run the risk of very complex solution layering, merge conflict and deployment issues when your solution is deployed to downstream environments.

  • johnjohnPter Profile Picture
    1,546 Super User 2024 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @parvezghumra i were able to replicate the issue, if i went to the power apps inside the Dev environment, and select to "Add required objects":-

     

    johnjohnPter_0-1720870588998.png

     

     

    seems this step will reset all the Export check-boxes and set them to Yes.

  • johnjohnPter Profile Picture
    1,546 Super User 2024 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @Velegandla still showing at my end

  • velegandla Profile Picture
    202 Super User 2025 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @johnjohnPter 

     

    Update:

    It seems the Export Value option has been removed. 

     

    Velegandla_0-1720868534084.png

     

    ====================================================

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    https://www.linkedin.com/in/devendravelegandla/ 

     

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @johnjohnPter Apologies for the delay in following up.

     

    I've been unable to replicate this behaviour in my tenant. So I would recommend either trying to investigate what's causing this anomaly in your environment, or otherwise raise a support request with Microsoft to have them investigate 

  • velegandla Profile Picture
    202 Super User 2025 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @johnjohnPter 

     

    I verified in my Tenant, it stays the same though i cleared the values for current Site and List.

     

    Velegandla_1-1720701912381.png

     

     

    Velegandla_0-1720701891541.png

     

     

    I will add the values back and wait or 24 hrs to update this thread again. 

     

    ====================================================

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    https://www.linkedin.com/in/devendravelegandla/ 

     

     

  • johnjohnPter Profile Picture
    1,546 Super User 2024 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @parvezghumra were you able to replicate this?

  • johnjohnPter Profile Picture
    1,546 Super User 2024 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @parvezghumra thanks

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @johnjohnPter in that case my guess is that the platform is doing this automatically when you export a solution containing environment variables. I will test this in my own environment tomorrow to confirm and let you know 

  • johnjohnPter Profile Picture
    1,546 Super User 2024 Season 1 on at
    Re: Why all the Environment Variables inside my Dev environment got their Export checkbox set to Yes, although i set them to No last mont?

    @parvezghumra no one have this permission, except my account. also this happened today, after i set all check-boxes to No yesterday

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

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
bscarlavai33 Profile Picture

bscarlavai33 5 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

#3
Vince_K Profile Picture

Vince_K 2

Overall leaderboard

Featured topics