| Muhammad Uzair
Good practices of using of environment variable
Environment variable must be used when ones know that value of the field would not change or specifically when there
is one key (value) is provided for development phase and different key will be assigned in testing phase and for
production phase respectively. In this case, if we don’t use environment variable; there would be need to change the
value of the places wherever the value is used or if we do use the environment variable then there would be need to
change the value from all the places instead just one where the environment variable is assigned.
Let’s take an example of this flow where SharePoint action is used and assigned hard coded value. So we have to change this value and all the place where SharePoint action is used.
But if I have used the environment variable in all the sharepoint actions then I don’t need to worry about the flows instead I just change the value of the environment variable.
Join us next time, as we continue our journey of learning canvas apps.Click here to learn more about Imperium's Power Apps Services. We hope this information was useful, and we look forward to sharing more insights into the Power Platform world.