Forum Discussion
satwik_gorlaman
10 months agoRegular Visitor
Export data from custom Visuals is not working
I have added a functionality using 'downloadService.exportVisualsContent' * I am Able to export data using app.powerbiservice.com and PowerBi Desktop * But Unable to download from Embeded API sid...
grazitti_sapna
Super User
10 months ago
Could you please check and try the following:
- Power BI Embedded’s export/download relies on the browser’s ability to show pop-ups or trigger downloads.
- Make sure your embed iframe isn’t missing required permissions like allow-downloads and allow-popups.
- In your embed code, set the iframe sandbox attribute to include at least:
- allow-scripts allow-same-origin allow-popups allow-downloads allow-forms
- Some browsers and containers (e.g. Teams or browser settings) also block pop-ups by default, so check browser pop-up blockers.
If your iframe or environment restricts downloads, the file download won't trigger even if the API call is successful. Adjust the embed settings accordingly and test in different browsers.
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!