Hi! I'm new to Power Apps, and currently making a canvas app using Dataverse for Teams. I want to use environment variables to store information that needs to be changed when importing the app to another enviromnet, but I'm having trouble using LookUp() to access the current value of the environment.
I've added the environment variable ('testVariable') to the solution in the Power Apps for Teams app, and added the connections to the two tables 'Environment Variable Definitions' and 'Environment Variable Values' in my app.
My problem is that the values for 'Schema Name' in the two tables are different, so I can't get LookUp() to work. The value in the 'Environment Variable Valu es' table was added automatically, but it just seems to have and ID, and not the actual name of the variable like in the 'Environment Variable Definitions' table.
I'm able to get the Default Value of the environment variable by using a LookUp() to the Definitions table, but I want to use the Current Value for this environment.
Here's the code that works (default value):
LookUp(
'Environment Variable Definitions',
'Schema Name' = "cr896_testVariable"
).'Default Value'
And here is the code that doesn't work, because there is no value in the Values table that matches the variable name:
LookUp(
'Environment Variable Values',
'Environment Variable Definitions'.'Schema Name' = "cr896_testVariable").Value
Can someone please help me understand how I can get the current value from the tables? Thank you.