cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sammybridge
Helper IV
Helper IV

Using Environment Variables in Canvas App

Hello,

 

I am using Environment Variables to reference a handful of SharePoint lists to make it easier when exporting/importing solutions. I can get this working easy enough in my flows, but when it comes to the Canvas app, I am struggling to get it working. I have implemented the code below which is giving me the GUID of my SharePoint list which is great. But how do I go about using the GUD within the context of gallery? Is this even possible? So for example I want to have my Gallery items to be the Environment Variable that I am looking up.

 

Set(
        NPISPHolidaysEnvVar,
('Environment Variable Values',
            'Environment Variable Definition'.'Schema Name' = "bri_SPHolidays"
        ).Value
    )

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @sammybridge ,

You cannot dynamically refer to Power Apps Lists, Fields or Controls, so unfortunately this is not presently possible.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @sammybridge ,

You cannot dynamically refer to Power Apps Lists, Fields or Controls, so unfortunately this is not presently possible.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 (2,484)