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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors