Forum Discussion
Export underlaying data from visual using the Power BI embedded API
- 1 year ago
Hi cristiana777,
Thanks for reaching MS Fabric community support
Yes, exporting underlying data from a visual using the Power BI JavaScript API is supported in embed-for-your-organization scenarios. However, we’ve observed that the export may fail in some cases — even if the same export works through the UI.
This usually happens due to stricter checks enforced by the API. To ensure successful export of underlying data programmatically, please make sure:
-
The user has Build permissions on the dataset.
-
The visual actually supports underlying data export.
-
No Row-Level Security (RLS) or sensitivity labels block the export.
If you’re using an AAD token, we recommend testing the same flow using an embed token with Tokentype.Embeded and setting up the required effectiveIdentity to ensure the dataset access aligns correctly.
Let us know if you’d like help adjusting the embed configuration to test this.
Thanks,
Prashanth Are
-
Hi cristiana777,
Thanks for reaching MS Fabric community support
Yes, exporting underlying data from a visual using the Power BI JavaScript API is supported in embed-for-your-organization scenarios. However, we’ve observed that the export may fail in some cases — even if the same export works through the UI.
This usually happens due to stricter checks enforced by the API. To ensure successful export of underlying data programmatically, please make sure:
-
The user has Build permissions on the dataset.
-
The visual actually supports underlying data export.
-
No Row-Level Security (RLS) or sensitivity labels block the export.
If you’re using an AAD token, we recommend testing the same flow using an embed token with Tokentype.Embeded and setting up the required effectiveIdentity to ensure the dataset access aligns correctly.
Let us know if you’d like help adjusting the embed configuration to test this.
Thanks,
Prashanth Are