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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
ReignMaker22
Frequent Visitor

Dynamic Mapping of Semantic Models

I am hoping someone here has successfully done this type of project before.  The organization I work for has multiple workspaces containing multiple semantic models.  I am looking for a way (REST API, Python, etc) to extract all workspace names, semantic model names, and the tables in those semantic models.  The goal is to be able to identify which models will be affected by field changes/deletions.  Has anyone been able to accomplish this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from GilbertQ.

 

Hi @ReignMaker22 ,

 

Based on your description of the problem, I'm going to offer an approach:

 

First we can get all the workspaces by using powershell, the following example will return all workspaces and their names:Get-PowerBIWorkspace (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn

vlinhuizhmsft_0-1724845251287.png

 

Store the workspace just acquired and then use the workspace ID to get the semantic model of the corresponding workspace:Get-PowerBIDataset (MicrosoftPowerBIMgmt.Data) | Microsoft Learn. 

vlinhuizhmsft_1-1724845382729.png

 

At this point we can use the following three APIs to get the details of the semantic model corresponding to the workspace:

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

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

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

vlinhuizhmsft_2-1724845568271.png

You need to know enough about powershell commands and API to implement it according to the documentation.

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

4 REPLIES 4
GilbertQ
Super User
Super User

Hi @ReignMaker22 

 

You can use the scanner API to get this data. I recently did a blog post on how to get the scanner API data using a Fabric notebook.

 

Downloading Scanner API data using a Microsoft Fabric Notebook - FourMoo | Fabric | Power BI





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

Proud to be a Super User!







Power BI Blog

Thank you for the resonse Gilbert.  Does this solution allow you to see what tables are in each semantic model?

Anonymous
Not applicable

Thanks for the reply from GilbertQ.

 

Hi @ReignMaker22 ,

 

Based on your description of the problem, I'm going to offer an approach:

 

First we can get all the workspaces by using powershell, the following example will return all workspaces and their names:Get-PowerBIWorkspace (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn

vlinhuizhmsft_0-1724845251287.png

 

Store the workspace just acquired and then use the workspace ID to get the semantic model of the corresponding workspace:Get-PowerBIDataset (MicrosoftPowerBIMgmt.Data) | Microsoft Learn. 

vlinhuizhmsft_1-1724845382729.png

 

At this point we can use the following three APIs to get the details of the semantic model corresponding to the workspace:

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

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

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

vlinhuizhmsft_2-1724845568271.png

You need to know enough about powershell commands and API to implement it according to the documentation.

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Thank you.  I will be trying both solutions to see what will work for our needs.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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