Forum Discussion
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?
6 Replies
- nryan688Regular Visitor
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.
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
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
Next you use a "COMPOSE" step with a Base64 function
"base64(outputs('Export_To_File_for_Power_BI_Reports')?['body'])"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:image/png;base64,Outputs" width="350" height="200"/>
Results. Weekly automated email including 3 visuals from different PBI reports
- AnonymousNot applicable
How can we add filters in this flow, I want to capture visuals based on different filters. For example one visual for one value and the other for different.
- nryan688Regular Visitor
You are supposed to be able to use able use the Report level filters section. You can review https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters If you have spaces in your table and field names make sure you read the details further down that link. I personally just create a hidden page that has the charts and filters I want to capture for the automated emails instead of using this part.
- GanesaMoorthyGMHelper II
This is really helpful, I'm working in similar goal to achieve,
I have Premium Per User whether I can Chieve this if I have Premium Per User or else Do I need to have Premium per Capacity?
- v-jingzhangCommunity Support
Hi Anonymous
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. - AnonymousNot applicable
I am getting below Error .
{"error":{"code":"FeatureNotAvailableError","pbi.error":{"code":"FeatureNotAvailableError","parameters":{},"details":[]}}}