After yesterday’s post about environment variables in Power Automate, today it is time to look environment variables Power Apps.
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.
2 thoughts on “Environment Variables in Power Apps”
Wow! Does it require premium connectors??
It just part of solutions but not part of premium connectors.