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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors