Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Prasad-DA
Regular Visitor

Parameters in Dataflow Gen 2 - Deployment Pipelines

Can we use parameters in "Data Flow Gen 2" to change the data source between UAT and Prod workspaces when we use deployment pipelines? 

 

Note: This is supported in Data Flow Gen 1, but I couldn't find a way to do it in Data Flow Gen 2. Does anyone have any workarounds?

 

Cheers,

Prasad.

1 ACCEPTED SOLUTION
nilendraFabric
Super User
Super User

hello  

Currently, Dataflow Gen 2 in Fabric does not natively support deployment pipelines, which makes it challenging to use parameters to dynamically switch data sources (e.g., between UAT and Production workspaces) during deployments

 

https://www.reddit.com/r/MicrosoftFabric/comments/1en5e54/an_interesting_solution_to_deployment_pipe...


Try this : 

Use dynamic logic in your queries to determine the workspace or data source based on the current environment. 

  • Use a system variable like WorkspaceID to identify the environment.
  • Implement conditional logic (e.g., if statements) within Power Query to switch between data sources based on this variable

     

    This solution is not perfect m, but worth trying 

    If this helps ,please accept the solution and give kudos

     

@Prasad-DA

View solution in original post

2 REPLIES 2
belkov78
Frequent Visitor

Switching between sources isn't the real issue, but switching the actual destination is from what I understand. I am perfectly able to switch the workspace the source is coming from, but the destination is pretty much baked into the dataflow

nilendraFabric
Super User
Super User

hello  

Currently, Dataflow Gen 2 in Fabric does not natively support deployment pipelines, which makes it challenging to use parameters to dynamically switch data sources (e.g., between UAT and Production workspaces) during deployments

 

https://www.reddit.com/r/MicrosoftFabric/comments/1en5e54/an_interesting_solution_to_deployment_pipe...


Try this : 

Use dynamic logic in your queries to determine the workspace or data source based on the current environment. 

  • Use a system variable like WorkspaceID to identify the environment.
  • Implement conditional logic (e.g., if statements) within Power Query to switch between data sources based on this variable

     

    This solution is not perfect m, but worth trying 

    If this helps ,please accept the solution and give kudos

     

@Prasad-DA

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.