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
Hello!
Is it possible to get all sheets that exists in a report from the REST API?
BR
Tommie
Hi @Tommoo92 ,
I'm afraid it is not supported to get all sheets that exists in a report from the REST API currently.
But it is supported to get all Data Sources like so:
let
Source = OData.Feed("http://localhost/reports/api/v2.0", null, [Implementation="2.0"]),
PowerBIReports_table = Source{[Name="PowerBIReports",Signature="table"]}[Data],
#"Removed Other Columns" = Table.SelectColumns(PowerBIReports_table,{"Id", "Name", "Path", "Type", "ModifiedBy", "ModifiedDate", "CreatedBy", "CreatedDate", "DataSources"}),
#"Expanded DataSources" = Table.ExpandTableColumn(#"Removed Other Columns", "DataSources", {"ConnectionString", "DataModelDataSource"}, {"ConnectionString", "DataModelDataSource"}),
#"Expanded DataModelDataSource" = Table.ExpandRecordColumn(#"Expanded DataSources", "DataModelDataSource", {"Type", "Kind"}, {"Type.1", "Kind"})
in
#"Expanded DataModelDataSource"
Reference: Getting a list of Power BI reports and Data Sources from the Power BI API - SQL Ryan
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Note that this is the Report Server API and not PBI Service API
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |