Reputation: 1643
I'm looking for a quick example of how to read an Environment Variable in a PowerApp. https://learn.microsoft.com/en-gb/powerapps/maker/common-data-service/environmentvariables
I've set the variable in my environment. How do I simply read that in a PowerApp and display the current value in a text label?
Upvotes: 2
Views: 3971
Reputation: 1643
There are two steps to solve this:
Set the value of the text of the label to be:
LookUp('Environment Variable Values', 'Environment Variable Definition'.'Schema Name' = "test_environment_data").Value
Source of the solution: https://www.youtube.com/watch?v=DxjwpqcwI_Y
Upvotes: 3