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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply

Migration: Dataflows Gen1 to Gen2

Hi Community,

Greetings for the day.

 

I have a scenario where I need to migrate dataflows gen1 to gen 2. I can easily export the power query template from gen1 and import it to gen2. But this is a manual step, is there an API that can export power query templates from Gen1 and that which can import a power query template to gen2? 

I was only able to get this: https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-migrate-from-dataflow-gen1-scena...

Appreciate any help that can automate this process.

 

Thanks and regards,

Hrishi

1 ACCEPTED SOLUTION
BhavinVyas3003
Super User
Super User

Gen1: Use Power BI REST API

Gen2: No API for direct import yet

  • Manual import via UI: Use Power Query editor in Dataflows Gen2 to paste M script.
  • No public API currently to programmatically create Gen2 dataflows with M script.

Workaround

  • Automate Gen1 M extraction using REST API + PowerShell/Python.
  • Create Gen2 dataflows manually or wait for future Fabric API updates.

Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

View solution in original post

1 REPLY 1
BhavinVyas3003
Super User
Super User

Gen1: Use Power BI REST API

Gen2: No API for direct import yet

  • Manual import via UI: Use Power Query editor in Dataflows Gen2 to paste M script.
  • No public API currently to programmatically create Gen2 dataflows with M script.

Workaround

  • Automate Gen1 M extraction using REST API + PowerShell/Python.
  • Create Gen2 dataflows manually or wait for future Fabric API updates.

Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors