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
-
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query