Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
We would like to setup an email export of power bi embedded but use your application to do it. Can someone tell me if we can use these api's to export the binary stream of the report?
Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Solved! Go to Solution.
Hi @Don-Bot ,
Thanks for asking the question in Microsoft Fabric Community,
Yes, you can use the Power BI REST API, specifically the Export To File endpoint to export an embedded report as a binary stream (such as PDF, PPTX, or PNG). This allows your application to generate the report file programmatically and then use that file stream for purposes like sending via email.
To achieve this, you can follow these steps:
1. Call the Export To File API with the report ID and desired export format.
2. Use the Get Export To File Status API to poll until the export job completes.
3. Once completed, the API provides a download URL where you can fetch the file (binary stream).
Requirements:
Here’s the official documentation for reference:
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Hope this helps. Please reach out for further assistance.
If this post helps, then please consider to Accept as the solution to help the other members find it more quickly and a kudos would be appreciated.
Thank you.
Hi @Don-Bot ,
Thanks for asking the question in Microsoft Fabric Community,
Yes, you can use the Power BI REST API, specifically the Export To File endpoint to export an embedded report as a binary stream (such as PDF, PPTX, or PNG). This allows your application to generate the report file programmatically and then use that file stream for purposes like sending via email.
To achieve this, you can follow these steps:
1. Call the Export To File API with the report ID and desired export format.
2. Use the Get Export To File Status API to poll until the export job completes.
3. Once completed, the API provides a download URL where you can fetch the file (binary stream).
Requirements:
Here’s the official documentation for reference:
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Hope this helps. Please reach out for further assistance.
If this post helps, then please consider to Accept as the solution to help the other members find it more quickly and a kudos would be appreciated.
Thank you.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |