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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Rob_Bitq
New Member

Missing Datasources from workspace-info-get-scan-result API

Hi All,

 

I am attempting to get the full details of the power bi environment for a client using the admin APIs and ADF. Everything seems to be working except for the data sources bit. When I use the workspace-info-get-scan-result API there are no JSON nodes for any of the data source info either at the top level for the datasourceInstances/misconfiguredDatasourceInstances or in the individual dataset nodes.

I get results if I try to get the data sources via the Dataset API.

 

Anecdotally the same code I am using worked fine for a different client 12 months ago. So I am unsure if it is a settings/permissions issue or if the API no longer supports getting the data this way.

 

Any suggestions would be welcome

 

Cheers

Rob

 

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Rob_Bitq ,

 

The result you get from the WorkspaceInfo GetScanResult API depends on the scanId you get using the WorkspaceInfo PostWorkspaceInfo API.

Please make sure that the scanid you get via WorkspaceInfo PostWorkspaceInfo API contains the information of the data source.

vjianbolimsft_0-1681276745575.png

 

For more details, please refer to:

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

 

Best Regards,

Jianbo Li

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

View solution in original post

2 REPLIES 2
Rob_Bitq
New Member

Yep, that was it. I did have to turn on the lineage flag as well as the data source flag for it to work.

 

v-jianboli-msft
Community Support
Community Support

Hi @Rob_Bitq ,

 

The result you get from the WorkspaceInfo GetScanResult API depends on the scanId you get using the WorkspaceInfo PostWorkspaceInfo API.

Please make sure that the scanid you get via WorkspaceInfo PostWorkspaceInfo API contains the information of the data source.

vjianbolimsft_0-1681276745575.png

 

For more details, please refer to:

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

 

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.