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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
AnthonyMCUBI
Frequent Visitor

How to get newly imported dataflow from Power BI REST API

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

1 REPLY 1
lbendlin
Super User
Super User

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

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.