Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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
Solved! Go to Solution.
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.
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.
Yep, that was it. I did have to turn on the lineage flag as well as the data source flag for it to work.
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.
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.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |