Forum Discussion
Dataset.Read.All is not available under Application Permissions in Azure AD for Power BI API
- 1 year ago
Hi rodrigo09062015 ,
Thanks for your response. You can capture a specific visual from a Power BI report using the Export To File API, but there are a few things to keep in mind.
1. The report needs to be in a workspace with Premium or PPU capacity
2. You’ll need to use a service principal to make the export call
The visual needs to be part of a report, not just placed on a dashboard. Dashboard tiles aren’t currently supported by this API, but as long as your visual is on a report page, you can export it as a PNG, PDF, or PPTX file. Dashboard tiles aren’t supported in this API, but if your visual lives on a report page, you’re good to go and you can export it to PNG, PDF, or PPTX.
Here are some useful links to help you get started
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
I Hope this helps.
Thanks ®ards,Yugandhar.
Friends,
Thank you for the response.
It’s clear to me now.
My initial goal was to try to use the API to capture an image of a specific visual from a dashboard. I must admit I don’t know if it’s possible to do this via the Power BI API.
If any colleague knows whether it’s possible and can share tips or how to do it, I would appreciate it.
Hi rodrigo09062015 ,
Thanks for your response. You can capture a specific visual from a Power BI report using the Export To File API, but there are a few things to keep in mind.
1. The report needs to be in a workspace with Premium or PPU capacity
2. You’ll need to use a service principal to make the export call
The visual needs to be part of a report, not just placed on a dashboard. Dashboard tiles aren’t currently supported by this API, but as long as your visual is on a report page, you can export it as a PNG, PDF, or PPTX file. Dashboard tiles aren’t supported in this API, but if your visual lives on a report page, you’re good to go and you can export it to PNG, PDF, or PPTX.
Here are some useful links to help you get started
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
I Hope this helps.
Thanks ®ards,
Yugandhar.