
Explanation:
First, you should create an environment variable in a solution in the development environment.
The environment variable will hold the purchase order mailbox email address. The flow will be triggered by emails arriving in the mailbox defined in the environment variable.
Next, you should create a cloud flow using the environment variable in the trigger step.
Environment variables can be used in triggers and action steps in cloud flows. By using environment variables, the flow can be used in different environments without the need to edit the flow. You can only use an environment variable after it has been created in the solution.
Then, you should set the current value in the environment to the mailbox email address. For the development environment you should set the current value to the email address for the development purchase order mailbox. For testing and production environments, you can set the current value of the environment variable after the solution has been transported by Azure DevOps pipelines to the mailboxes for the testing and production environments.
Finally, you should turn the cloud flow off and on. When the cloud flow was imported it will have used the current value of the environment variable, or the default value if the current value is empty. This will be incorrect for the testing and production environments. You need to turn the cloud off and then back on after you have edited the current value of the environment variables referenced by the flow.
You should not set the default value in the development environment to the mailbox email address. The default value will be copied to the testing and production environments that require a different mailbox. You do not need to set the default value.
You should not set the default value in the testing and production environments. You cannot edit the default value for an environment variable after importing the solution.
You should not create an environment variable in the testing and production environments. The environment variable is included in the solution and is copied to the testing and production environments. Creating environment variables in the testing and production will create new environment variables and would require the cloud flow to be edited.
You should not configure Azure Key Vault. Azure Key Vault is used to store secrets such as passwords. You do not need to use Key Vault to store mailbox details. You normally use environment variables to reference the secrets in Key Vault.
You should not create a connection reference. Connection references are used for authenticating against the connectors used in the flow. Connection references allow you to change the authentication used in a cloud flow by editing the connection reference without editing the connections in the cloud flow.
Reference:
https://learn.microsoft.com/en-us/power-apps/maker/data-platform/environmentvariables
https://learn.microsoft.com/en-us/training/modules/import-export-solutions/environment-variable- basics
https://learn.microsoft.com/en-us/power-apps/maker/data-platform/create-connection-reference