This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |