web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automate a screenshot ...
Power Automate
Answered

Automate a screenshot from a PowerBI report

(0) ShareShare
ReportReport
Posted on by 32

Hi,

 

I have to build a flow that allows me to automatically take a screenshot from a PowerBI page, to then include that PNG into the body of an automated email. Here is my flow, but when I receive the email, no image appears. Could you please help me.

 

Raphael33_0-1704295788972.png

I then entered the following code in the "Initialize Variable" action :

Raphael33_1-1704295826597.png

Thanks for help !

Raphaël

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Raphael33 

    According to your description, you want to embed the png in your email body.

    I test it in my side , you need to ensure you return the file content type is "image/png" in your flow run historty:

    vyueyunmsft_0-1704333069508.png

    For example , if your Power BI report have more then one pages, it will return zip file content type when you do not give the "Pages pageName" parameter. This will return all the pages as PDF files in a zip file.

    vyueyunmsft_1-1704333178672.png

    So you can first give a page name in this field to test:

    vyueyunmsft_2-1704333290011.png

    Then we can use this expression in Send Email action:

    vyueyunmsft_3-1704333314926.png

    <img src="data&colon;image/png;base64,

    outputs('Export_To_File_for_Power_BI_Reports')?['body']?['$content']

    " alt="Power BI Report" />

     

     

    Best Regards,

    Yueyun Zhang

     

  • Raphael33 Profile Picture
    32 on at

    Hi @v-yueyun-msft ,

    I tried what you did, and it still returns an empty space in my email body :

    Raphael33_0-1704355944415.png

    Then I ented your script in the email :

    Raphael33_1-1704356013883.png

    And finally here is what I receive :

    Raphael33_2-1704356064593.png

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Raphael33 

    Sorry, it seems i copy the wrong code and i do not know why i put the ":",it will convert it to "&colon;"😅 , you can try to use :

    You need to use the ":" instead of the "&colon;". Like this in thescreenshot:

     

    vyueyunmsft_0-1704356410830.png

     

    outputs('Export_To_File_for_Power_BI_Reports')?['body']?['$content']

     

     

     

     

    " alt="Power BI Report" />

     


    Best Regards,

    Yueyun Zhang

  • Raphael33 Profile Picture
    32 on at

    Thanks for the correct script. I just wrote it and it still doesn't works, don't really understand...

    Raphael33_1-1704359010308.png

     

    Raphael33_0-1704358965871.png

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Raphael33 
    Thanks for your quick response! Can you try to click this and put this into here :

    First , you go to the old designer in Power Automate right above corner.

    vyueyunmsft_0-1704359313731.png

    It works good in my side ..


    Best Regards,

    Yueyun Zhang

     

  • Raphael33 Profile Picture
    32 on at

    I wrote that script in the code view :

    Raphael33_0-1704360005048.png

    And it returns an empty space again :

    Raphael33_1-1704360028085.png

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Raphael33 

    Can you show me your Export to file action return in run historty:

    vyueyunmsft_0-1704360307300.png

    If this , this is my send email action:

    vyueyunmsft_1-1704360554684.png

     


    Best Regards,

    Yueyun Zhang

  • Raphael33 Profile Picture
    32 on at

    I do not have the same outputs as you do :

    Raphael33_0-1704360556648.png

    When I download :

    Raphael33_1-1704360582975.png

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Raphael33 

    Your output seems has no problem, the content type is image/png:

    vyueyunmsft_0-1704360820791.png

    So can you check this:

    vyueyunmsft_1-1704360835963.png

    In your screenshot , it seems that you add a space here?

     


    Best Regards,

    Yueyun Zhang

     

  • Raphael33 Profile Picture
    32 on at

    I just removed the space, and still the same problem, It says that it is not possible to get an overview:

    Raphael33_0-1704361040486.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard