Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
raj_indulkar
New Member

Embed PowerBI report snapshot in mail body through Power Automate

Want to embed the snapshot of Power BI report as PNG in email body through Power Automate.

eg:- If my Power BI report has 3 pages so i need all 3 pages embedded in email body.

I am using "export to file for powerbi report" as connector to export the file in PNG format and then storing it in Onedrive,but it shows can't preview this file.

It is working for PDF & PPTX format but not for PNG.What is the work around anyhelp would be really appreciated.

Thanks

 

raj_indulkar_0-1775632448310.png

raj_indulkar_1-1775632664268.png

 

5 REPLIES 5
v-prasare
Community Support
Community Support

Thanks for sharing the workaround that worked for you, this will help other users who may face similar issues.
If you have any additional questions, feel free to let us know. Happy to help!
 
@xifeng_L@mh2587, Thanks for your prompt response
 
 
thanks,
prashanth
xifeng_L
Super User
Super User

Hi @raj_indulkar 

 

After exporting the PowerBI report as a PNG image, it needs to be converted to base64 format and then embedded into the email body using an HTML img tag.

 

As shown in the figure below:

 

xifeng_L_0-1775641225532.png

 

concat('data:image/png;base64,',outputs('Export_To_File_for_Power_BI_Reports')?['body']?['$content'])

<img src="@{outputs('Base64Img')}" width="1280" height="720"><br>

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

raj_indulkar_0-1776075261523.png

Thank you for the solution,but i tried this under advanced parameter>>pages>> page name (i:e pageid get this  from URL part between (/  and ?) and it worked for me

 

mh2587
Super User
Super User

The Power BI Export API returns:

PDF/PPTX single file (easy to attach/embed)

When exporting PNG, the output is actually:

A zip-like binary stream OR

Multiple file parts (not directly previewable in OneDrive)

That’s why:

OneDrive says can’t preview this file

Email embedding fails

So you need:

3 separate PNGs (one per page)

Convert them to Base64

Inject into HTML email body


✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn

raj_indulkar_1-1776075551804.png

 

Thank you for the solution,but i tried this under advanced parameter>>pages>> page name (i:e pageid get this  from URL part between (/  and ?) and it worked for me

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.