Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

How to get newly imported dataflow from Power BI REST API



Referencing the Power BI REST API here, I do not see a way to create a dataflow and then retrieve that dataflow. AFAIK, the only way to create a dataflow is with the PostImport function, and this is currently what we use at work to programmatically create dataflows in Power BI. The GUID returned from PostImport is the import event's GUID, and not the dataflow's. Using GetImport( importId ) returns the import's metadata; that metadata includes a datasets array and a reports array that contain the datasets/reports created from that import, and from those arrays I can get those entity GUIDs, and then call the proper GET endpoint to retrieve more data about those entities. But, there is no array for dataflows, which means we don't have the dataflow GUID, which means we can't call GetDataflow.


Am I wrong here, or is there no way to make a dataflow and then retrieve it? 


I workaround we are using for the meantime is to retrieve all dataflows in a workspace, since that function does not require any dataflow GUID, but obviously this is not optimal and is a bit confusing to see in the code.


Thank you,



Super User III
Super User III

I think your workaround is acceptable as long as you can positively identify your newly created dataflow. I don't think the Power BI service has a concept of returning an identifier for asynchronously created meta elements (like dataflows)

Helpful resources



We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!


The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors