Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.