Forum Discussion
Export data from custom Visuals is not working
Hi satwik_gorlaman ,
Thanks for confirming those details and for double checking the permissions.
Regarding 2nd point, Browsers can block file downloads that originate from an embedded iframe on a different domain than your main web app.
For example.
Your web app → https://portal.contoso.com
Power BI iframe → https://app.powerbi.com
This cross domain setup may prevent download pop-ups from appearing.
So, Try hosting the embedded report on the same domain as your main web app, or Use a reverse proxy so the iframe appears under your app’s domain.
Coming to 3rd point, The downloadService.exportVisualsContent API is not officially documented as being supported in Embedded scenarios with Service Principals. To determine if this is causing the issue.
Try to Test the same setup using user delegated authentication. If the download works with user auth but not with Service Principal, it confirms the limitation.
Hope this help.
Regards,
Yugandhar.
Hi V-yubandi-msft ,
After extensive troubleshooting, I discovered that the issue I was due to Power BI's limitation.
I've shared this idea in powerbi board hoping the Power BI team considers adding support for custom visuals to download a file for embeded env in future updates. It would greatly enhance flexibility and enterprise integration capabilities.
- V-yubandi-msft9 months agoCommunity Support
Thanks for the update, and I appreciate you taking the time to investigate this further. It’s great to hear that you have already shared the idea in the Power BI Ideas forum. That’s the best way to bring visibility to the product team for future feature considerations.
Please feel free to share the link to the idea here so others can support it. If there’s anything else we can help with in the meantime, just let me know.
Regards,
Yugandhar.