web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamically referencin...
Power Automate
Unanswered

Dynamically referencing environment for Dataflow refresh Connector for Dev and Production environment

(1) ShareShare
ReportReport
Posted on by 79

Hi,

 

I have two environments : Dev and Prod.

 

I have a dataflow created in Dev environment which is refreshed using Power Automate trigger 'Refresh a Dataflow' with following configuration

Group Type : Environment

Group : Dev_Environment_Name

Dataflow : Dataflow_Name

 

I will be publishing the flow and dataflow into production, but the Group us still defined as Dev_Environment.

 

Is there any way to dynamically choose the Environment Name so it can work both Dev and Prod based on the type of environment?

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @Farhanftp 

     

    You may use workflow function to get the environment name or id within the flow. Here is an example:

     

    Add an expression in compose action to get the environment name or id. Expression needs to be added in the expression box as shown below:

    ManishSolanki_0-1720084036201.png

    workflow()?['tags/environmentName']

    Use the output of compose action to set the environment name dynamically.

     

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard