Environment Variables in Power Apps Microsoft Office 365 image 51

Environment Variables in Power Apps

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.

Leave a Reply

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

%d bloggers like this: