web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Environment Variables ...
Power Apps
Unanswered

Environment Variables are not working as expected when deploying the solution to another environment using Pipeline

(0) ShareShare
ReportReport
Posted on by

I am deploying my solution from DEV to TEST and have created environment variables in Dev for SharePoint site and list(which is the datasource). At the time of deployment, I updated the environment variables with list name created for TEST Environment, however after the deployment is done successfully without any errors, the TEST environment is still showing DEV list data and connections are also not updated to new list which I created for TEST environment.

 

The SharePoint site I am using is same for both the lists.

 

Please let me know how can I rectify this issue

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at
    Re: Environment Variables are not working as expected when deploying the solution to another environment using Pipeline

    Hi @learnpowerapp , There is concept of default value and current value in environment. I have explained that in this post. Please go ahead and check for the reference which can help you resolving your issue.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

     

  • learnpowerapp Profile Picture
    on at
    Re: Environment Variables are not working as expected when deploying the solution to another environment using Pipeline

    @ANB - Thanks for your response. But my test environment is still pointing to old list(dev) even after following the steps mentioned in your solution. I tried using Export-Import method, but getting the same issue. 

    For using pipeline, do I need to follow https://learn.microsoft.com/en-us/power-platform/alm/conn-ref-env-variables-build-tools.

    Is there a simple way to deploy the app from one environment to another if I use Pipelines.

  • learnpowerapp Profile Picture
    on at
    Re: Environment Variables are not working as expected when deploying the solution to another environment using Pipeline

    @ANB - I was able to resolve the issue. As earlier, I didn't enabled the option in settings to Automatically create Environment Variables, instead I created Environment Variables for SharePoint Site and list after creating and publishing the app. Now, I deleted the already created Environment variables, enabled the setting and then removed connections of List from app and then re-connected the list. After that it started working.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard