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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bcreaney
New Member

Embedding graphs into Emails from Power Bi via Power Automate

Is it possible to embed a graph from Power Bi into an email via power automate? if so, how do I do it?

2 REPLIES 2
nryan688
New Member

This is posible 

 

first you need to make sure the Power bi Tenant setting are enabled to allow you to export reports as images. This is usually maintained by your companies Microsoft support or IT.

nryan688_0-1711467125731.png

 

Once enabled you can start your flow.

 

Start with a "Export To File for Power BI Reports" step and populate your

1. Workspace

2. Report

3. Export format = PNG

4. Page Name = Found at the end of your reports URL

nryan688_2-1711467610988.png

5. Visual Name - you can press F12 then seach for "visualsEnterhint" then brower until you see the visual you wish to capture. You will find a long alphanumeric code followed by the title of your visual. You want to copy the alphanumeric code. If you are not comfortable searching this way you can use this link to search the elements of your report. https://playground.powerbi.com/en-us/dev-sandbox

nryan688_3-1711468027180.png

 

nryan688_1-1711467442262.png

 

 

Next you use a "COMPOSE" step with a Base64 function

"base64(outputs('Export_To_File_for_Power_BI_Reports')?['body'])"

nryan688_4-1711468868810.png

 

Next you create your email "Send and Email(V2)". I use HTML format when I create this and it would look something this this.

 

<p>Hello,<p>Below is this weeks chart reporting out defect per project</p>

<p><img src="data&colon;image/png;base64,Outputs" width="350" height="200"/>

nryan688_6-1711469354941.png

 

Results. Weekly automated email including 3 visuals from different PBI reports

nryan688_7-1711469487003.png

 

nryan688_8-1711469600811.png

 

 

 

v-jingzhang
Community Support
Community Support

Hi @bcreaney 

 

Currently Power BI and Power Automate doesn't have such an out-of-box feature. But I found an old thread from Power Automate community that many users provided their ideas and solutions to achieve a similar goal. You may have a look at the thread Embed Power BI image inside Flow email action - Power Platform Community

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors