cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ms-PowerRanger2
Helper I
Helper I

Power Apps doesn't show Environment Variables

I created a solution containing SharePoint DataSource Environment Variables and a Power App.  When editing the Power App and attempting to connect the Environment Variables, there are no environment variables displayed.  I also have the Environment Variables Setting turned on for the Power App.  However, I wanted to use the environment variables that I created in the solution instead of power apps generating the variables for me.

 

MsPowerRanger2_0-1629831280520.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for your information.  I found out what the actual problem was.  I had a List that was not associated with a SharePoint Site.  When I created my DataSource Site Environment Variable, I just copied the URL for where all my LISTS exists that aren't associated with a specific SharePoint Site.  I was able to create the environment variable even though there was an error msg displayed at that top about not being able to find the site that I specified. 

 

I then proceeded to create a DataSource Environment Variable for the corresponding list and used the DataSource Site Environment Variable that I just created.  I displayed the lists located at that url associated with the Site Environment variable with no errors.  So I thought all was okay, However, Power Apps must not like the fact that the url specified in the Site Environment Variable since it is not truly a site and therefore did not show the environment variables I created when I tried to add them as a datasource to the Power App.

 

I ended up moving the List into a site and then pointing the URL to the site and then I was able to see the DataSource Environment Variables from within PowerApps.

 

It would be nice if the URL for Lists not associated with a SharePoint Site could be recognized and used to set up the DataSource Site Environment Variable. 

View solution in original post

2 REPLIES 2
JayMagness
Solution Specialist
Solution Specialist

HI,

 

It can take a little while for the sharepoint repository to show up under powerapps. 

 

try going to the SharePoint site and copy the URL and past it in the first line in your image and select connect.

 

Let us know if this resolves your issue

Thanks for your information.  I found out what the actual problem was.  I had a List that was not associated with a SharePoint Site.  When I created my DataSource Site Environment Variable, I just copied the URL for where all my LISTS exists that aren't associated with a specific SharePoint Site.  I was able to create the environment variable even though there was an error msg displayed at that top about not being able to find the site that I specified. 

 

I then proceeded to create a DataSource Environment Variable for the corresponding list and used the DataSource Site Environment Variable that I just created.  I displayed the lists located at that url associated with the Site Environment variable with no errors.  So I thought all was okay, However, Power Apps must not like the fact that the url specified in the Site Environment Variable since it is not truly a site and therefore did not show the environment variables I created when I tried to add them as a datasource to the Power App.

 

I ended up moving the List into a site and then pointing the URL to the site and then I was able to see the DataSource Environment Variables from within PowerApps.

 

It would be nice if the URL for Lists not associated with a SharePoint Site could be recognized and used to set up the DataSource Site Environment Variable. 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,864)