Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I want to get a complete list of all the reports published in Power BI Service, along with their data sources.
What I already know:
1. I can send the following request to receive a list of reports: "GET https://api.powerbi.com/v1.0/myorg/reports"
2. The above response also contains "datasetID"
3. I can then pass individual dataset IDs and call: "GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/datasources"
4. Use powershell to loop throught step 3 for all the datasetIDs returned in step 1
My question: Is the above approach my only option I have? Is there any better efficient API method?
Appreciate your help.
Regards,
Garry
A combination of PostWorkspaceInfo, GetScanStatus, and GetScanResult will get you the result in three API requests (see below).
Note that, for table details, you need to enable tenant settings for metadata scanning.
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
Hi, @soulofdata
Yes. I am afraid there is no other more efficient API.
The above approach maybe the only option.
You can view all PowerBI Restful APIs listed in the documentation below.
Best Regards,
Community Support Team _ Eason
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
61 | |
34 | |
31 | |
28 | |
27 |
User | Count |
---|---|
52 | |
46 | |
35 | |
15 | |
12 |