Use environment variables in Power Automate solution cloud flows

Environment variables can be used in solution cloud flows since they're available in the dynamic content selector. All types of environment variables can be used in triggers and actions.

To use an environment variable in a solution cloud flow:

  1. Edit or create a cloud flow in a solution.

  2. In an action or a trigger, determine the parameter that you want to use for the environment variable:

    1. If the parameter takes a simple value, such as a string or number, enter the parameter.

    2. If the parameter is a lookup, scroll to the bottom of the lookup, and then select Enter custom value. Environment variables that you have access to are listed in the dynamic content selector with other dynamic content.

      Select an environment variable to add to a cloud flow trigger or action.

  3. Select the desired environment variable.

Limitations

  • When environment variable values are changed directly within an environment instead of through an ALM operation like solution import, flows will continue using the previous value until the flow is either saved or turned off and turned on again.
  • When editing a cloud flow, the environment variables shown in the dynamic content selector are unfiltered, but will be filtered by data type in the future.
  • When editing a cloud flow, if an environment variable is added in another browser tab, the flow needs to be reopened in the flow designer to refresh the dynamic content selector.

See also

Use data source environment variables in canvas apps
Create a flow with Dataverse
Environment variables overview.