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

View all the Fabric Data Days sessions on demand. View schedule

Reply
scottc097
Regular Visitor

More Granular when pulling Semantic Models from Rest API

I am trying to pull all the tables inside my lakehouse using PowerBI's Rest API.

 

Originally, I used:

Reports - Get Reports In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

then created a loop to pull all datasources of reports using the datasetID:

Datasets - Get Datasources - REST API (Power BI Power BI REST APIs) | Microsoft Learn

However, I notice when it is a semantic model it just shows as a SQL and does not provide the tables. Additionally, It only pulls the sources of reports. I want all the data inside a workspace. Is there a way to the next granular level, so I may see if we are duplicating pulls of tables. Also, is there a way to tell if a table is a shortcut or another re-pull of the same datasource?

 

I am going to test this pull:

Admin - WorkspaceInfo GetScanResult - REST API (Power BI Power BI REST APIs) | Microsoft Learn

to see if I can get tables.

1 REPLY 1
Anonymous
Not applicable

Hi @scottc097 ,

To determine whether a table is a shortcut or repull to the same data source, you may need to analyze the metadata of the table and data source returned by the API call. Unfortunately, it may not be possible to distinguish between a shortcut and an actual table through a direct API call. However, you can use the information in the Lakehouse Explorer and OneLake API documentation to understand how tables and shortcuts are represented, and possibly to write comparison logic scripts.

Below is the official link will help you:

Lakehouse and Delta tables - Microsoft Fabric | Microsoft Learn

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.