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 / unable to set datasour...
Power Apps
Answered

unable to set datasource environment variable during import

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

When I move my solution from dev to test, I'm assuming I can then change my datasource environment variable for a Sharepoint list during import, but all I can change is the Sharepoint site environment variable.

 

Here are the steps I executed for my existing solution:

- create Sharepoint site environment variable inside my solution

- create multiple Sharepoint list environment variables inside my solution

- use the list variables in my canvas app that is inside the same solution, save & publish the app

- for each environment variable, choose 'Remove from this solution' to clear the current value (see 'export.png' attachment)

- export the solution as Managed (published all customizations before exporting)

- import the solution on my test environment: I only get to choose a connection (see 'first import on test.png' attachment)

 

I have followed all the steps as described here: https://www.youtube.com/watch?v=BFGcXSAgawM

When I create a fresh solution with a new canvas app with environment variables, it does seem to work!

 

How come I can't change the sharepoint list environment variables during import of my existing solution?

Cheers
reinder

 

export.png
first import on test.png
Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous try turning the Automatically create environment variables when adding data sources setting on. Then remove and re-add your data source. This will automatically add environment variables. Hope this helps! 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CNT thanks, I was just about to try that out when you replied. 
    I removed my environment variables and recreated them through my canvas app. I exported the solution and now the environment variables do show up during import, great!

    Thanks for the help.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Glad to help!

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • askondo Profile Picture
    Microsoft Employee on at

    @CNT Thanks for always keeping the forum active.

  • Rohit4044041 Profile Picture
    286 on at

    @Anonymous DId those datasource variable work in PowerApp after importing and updating in destination tenant/environment? For me, powerapp kept referring source app datasource, even though envirnment variable is updated correctly. I had to edit my canvas app again after import, remove the datasoruce and re-add. Which defies the purpose of having solutions

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rohit4044041 yes, setting the variable through the app worked for me.

  • jordanbbardwell Profile Picture
    6 on at

    I am experiencing this same issue.

    If I create a environment variable for the Site and the List, then change the site environment variable and publish it, it doesn't change the connection within Power Apps. Frustrating.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard