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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.