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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
devd
Regular Visitor

Pull Current Datasources for a dataflow Gen1 in power bi service using API

Hi  All,

I am trying to pull the datasources for a dataflow using power bi rest api , I am able to pull the information using  API (https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-dataflow-data-sources) , but it is giving me all the current as well history datasources  (Example: My dataflow was having the files  from on prem folder as a source , but now it is having sharepoint as a source ).

 

I just want to pull only the current datasources for a  dataflow . Is there a way to pull that information ?

Any help or suggestion is really appreciated .

 

 

 

1 REPLY 1
GilbertQ
Super User
Super User

Hi @devd 

 

My suggestion would be, is to go back into the data flow and make sure you remove any unwanted data sources, then rerun the api, which should then give you only the relevant data sources that are currently being used.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors