cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Newdatauser
Helper I
Helper I

How to Query Report folder structure of PowerBI report server and see all the hierarchy of folders ?

How to Query Report folder structure of PowerBI report server and see all the hierarchy of folders ?

 

I would like to query PowerBI report server and want to see how folders have been organized .I want the nested structure so that I can make decision in re-designing the folders based on my Business line and sub departments.

 

I m technical user and not want to see what data is present in the reports but just the structure and objects on report server .

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

You can also do this in a Power BI Report using an OData connector and connecting to the following endpoint

 

http(s)://<yourserver>/reports/api/v2.0/CatalogItems

 

This has a report path column which you can split on / characters to create a hierarchy

View solution in original post

4 REPLIES 4
d_gosbell
Super User
Super User

You can also do this in a Power BI Report using an OData connector and connecting to the following endpoint

 

http(s)://<yourserver>/reports/api/v2.0/CatalogItems

 

This has a report path column which you can split on / characters to create a hierarchy

View solution in original post

Got a error  via OData connector using windows auth 

 

Details: "Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed:
OData Version: 3 and 4, Error: The remote server returned an error: (404) Not Found. (Not Found)
OData Version: 4, Error: The remote server returned an error: (404) Not Found. (Not Found)
OData Version: 3, Error: The remote server returned an error: (404) Not Found. (Not Found)"


@Newdatauser wrote:

Got a error  via OData connector using windows auth 

 


Sorry, there should be a /reports (or whatever you have configured for your portal url) in front of the /api so the endpoint should be as follows

 

http(s)://<yourserver>/reports/api/v2.0/CatalogItems

blynchdata
Resolver I
Resolver I

You could try starting with something like this SQL and modify it from here. You'll need access to the SQL Server and the ReportServer database.

 

USE [ReportServer]
GO

 

SELECT CATALOG.NAME
,CATALOG.[Path]
,DataSource.NAME datasource
,CATALOG.[Description]
,Created.UserName AS CreatedByUser
,CATALOG.[CreationDate]
,Modified.UserName AS ModifiedByUser
,CATALOG.[ModifiedDate]
FROM [dbo].[Catalog]
LEFT JOIN (
SELECT [UserID]
,[UserName]
FROM [dbo].[Users]
) AS Created ON CATALOG.CreatedByID = Created.UserID
LEFT JOIN (
SELECT [UserID]
,[UserName]
FROM [dbo].[Users]
) AS Modified ON CATALOG.ModifiedByID = Modified.UserID
JOIN DataSource ON CATALOG.ItemID = DataSource.ItemID
JOIN CATALOG cat1 ON DataSource.Link = cat1.ItemID
WHERE CATALOG.[Type] = 2
ORDER BY [Path]
,NAME

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!