Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
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,
Anthony
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)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 18 | |
| 11 | |
| 11 | |
| 7 |
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 21 | |
| 21 | |
| 17 |