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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PowerWhy
Helper IV
Helper IV

How to overwrite dataflow with json file while keeping the same dataflow id?

Hello,

 

To backup up a dataflow's logic I download the json file. If I need to restore a dataflow's logic I need to be able to overwrite an existing dataflow with the backup json file, but keep the dataflow id the same. Please can you tell me how to do this / if it's possible?

 

I'm trying to do this because in power bi query editor the dataflow is defined by dataflowid not dataflowname (I know the power bi query editor M code can be tweaked to query by dataflowname instead of dataflowid but this is somewhat manual and introduces some risk due to the code being complicated).

 

Thank you for any help,

 

CW

1 REPLY 1
dbeavon3
Memorable Member
Memorable Member

@PowerWhy It is possible.  It is part of the "imports" REST api for dataflows.  It is an extremely unintuitive API and very buggy as well.  It is only supported if you use the REST API for the initial import and all subsequent ones after that. 

Even if you follow the rules, you will probably still encounter bugs (eg. importing with different credentials and what-not).

I would recommend you proceed with caution and open a support ticket with CSS as soon as you run into trouble.  They should be able to guide you thru the rest of the way.  I think they have staffed hundreds of CSS engineers, as a way to compensate for the buggy and confusing behavior of the software.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.