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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
SriThiru
Helper I
Helper I

How to programatically create a dataflow gen2 item

Is there any way available to programatically create an dataflow gen2 artifact in microsoft Fabric.

 

Please share any sample code (preferably using python in fabric notebook).

 

I need this automation feature to resolve various usecases.

One such example would be to automatically migrating dataflow gen 1 to dataflow gen2.

Ie., I want to perform the steps given in the following article programatically

fabric-docs/docs/data-factory/move-dataflow-gen1-to-dataflow-gen2.md at main · MicrosoftDocs/fabric-...

 

 

3 REPLIES 3
frithjof_v
Community Champion
Community Champion

There's an API to create Dataflow here: https://learn.microsoft.com/en-us/rest/api/fabric/dataflow/items

 

Semantic Link Labs has a function for creating Gen2 from Gen1:

https://semantic-link-labs.readthedocs.io/en/latest/sempy_labs.html#sempy_labs.upgrade_dataflow

 

I haven't tried any of these but would give it a try.

Anonymous
Not applicable

I also want to know about this scenario that if Dataflow gen2 can be created programatically as I have a use case for upcoming years data so there shoulb be some automated process like notebook which can make Dataflow gen2 automatically and attach it to the pipeline.

spencer_sa
Impactful Individual
Impactful Individual

There do not appear to be API entries yet for Dataflow Gen2s (nor does the artifact appear in DevOps after a synch, so no code definition in git).
(https://learn.microsoft.com/en-us/rest/api/fabric/articles/)

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.

Top Kudoed Authors