Environment Variables in Power Apps Microsoft Office 365 image 51

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 Microsoft Office 365 image 48

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!

Environment Variables in Power Apps Microsoft Office 365 image 49

This is where the variables come in!

On the Advanced tab above you can select our variables.

Environment Variables in Power Apps Microsoft Office 365 image 50

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

Environment Variables in Power Apps

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.

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using contact@sharepains.com

2 thoughts on “Environment Variables in Power Apps”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue reading