Forum Discussion
Get Description attribute of Power BI Report via API
- 4 years ago
Hi GStone
I would suggest looking at the scanner API and see if this can get all the information you are looking for?
Scanner API is now in GA | Microsoft Power BI Blog | Microsoft Power BI
- 4 years ago
Thanks so much for your suggestion. It turns out that the Scanner API was able to output the description for the report. For anyone else that is struggling with this - the process is a little more involved than just operating with the Power BI powershell cmdlets.
First step is to enable the Power BI APIs in the Admin portal
https://docs.microsoft.com/en-gb/power-bi/admin/service-admin-metadata-scanning-setup
Then, using the "Try It" links on the documentation website here
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-result
You send a POST with the workspace Id in the Body of the POST request. You are returned a Scan GUID which you need to then need to call GetScanResult with to get the results of the Scan and it does indeed include the description.
Thank you for pointing this out.
Thanks so much for your suggestion. It turns out that the Scanner API was able to output the description for the report. For anyone else that is struggling with this - the process is a little more involved than just operating with the Power BI powershell cmdlets.
First step is to enable the Power BI APIs in the Admin portal
https://docs.microsoft.com/en-gb/power-bi/admin/service-admin-metadata-scanning-setup
Then, using the "Try It" links on the documentation website here
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-result
You send a POST with the workspace Id in the Body of the POST request. You are returned a Scan GUID which you need to then need to call GetScanResult with to get the results of the Scan and it does indeed include the description.
Thank you for pointing this out.