After yesterday’s post about environment variables in Power Automate, today it is time to look environment variables Power Apps.
Environment Variables
As I showed in yesterday’s post for the SPSite variable I’m now going to create an environment variable in my solution for the SharePoint list as well.

Environment variables in Power Apps
In the past you would connect to a SharePoint list by selecting a SharePoint site and then select a SharePoint list. But this is not what we want. We want Dynamic list selection!

This is where the variables come in!
On the Advanced tab above you can select our variables.

And then when we select SP Site we get to select the SPList variable.

Wow, this is a game changer!
We can now dynamically select the lists using environment variables in Power Apps.
Replicating your lists
For this to really work, you need to be able to replciate your lists between development, test and production. For this I would recommend using PnP Powershell to export and import templates. if you need any help with this then just let me know on the chat.
Frequently asked questions
How did the article use environment variables for a SharePoint connection?
The example selects solution environment variables for the site and list from the connection’s Advanced tab.
What else is needed across development and production?
The author notes that corresponding lists must be replicated between environments and suggests provisioning templates as one approach.

Wow! Does it require premium connectors??
It just part of solutions but not part of premium connectors.