I'm looking for a quick example of how to read an Environment Variable in a PowerApp. https://docs.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?
Solved! Go to Solution.
That's the pointer I needed. Thanks.
The solution to my problem was to set the text on the label to be:
LookUp('Environment Variable Values', 'Environment Variable Definition'.'Schema Name' = "test_environment_data").Value
Hi @DavePotts_BritE ,
Have a look at this detailed video to help you better.
https://www.youtube.com/watch?v=DxjwpqcwI_Y
I hope this resolved your issue if you see any challenge let me know I am always happy to help.
Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.
That's the pointer I needed. Thanks.
The solution to my problem was to set the text on the label to be:
LookUp('Environment Variable Values', 'Environment Variable Definition'.'Schema Name' = "test_environment_data").Value
Hi @DavePotts_BritE,
I just noticed you liked my reply, please mark it as the solution if that solves your issue if not please let me know what else you need so that we can help the new members in the community also 😊
Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.
I made the mistake of adding both entities 'Environment Variable Values' and 'Environment Variable Definitions' to my app. Editor was autocompleting to 'Environment Variable Definitions' and I didn't realize that 'Environment Variable Values' has a record field called 'Environment Variable Definition'.....
LookUp('Environment Variable Values','Environment Variable Definition'.'Schema Name' = "myEnvVarSchemaName").Value //CORRECT
LookUp('Environment Variable Values','Environment Variable Definitions'.'Schema Name' = "myEnvVarSchemaName").Value //INCORRECT
Hope this helps anyone else who makes the same mistake.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
182 | |
46 | |
46 | |
34 | |
33 |
User | Count |
---|---|
260 | |
87 | |
79 | |
68 | |
67 |