Skip to main content

Notifications

Community site session details

Community site session details

Session Id : B9nHsoRhZTbqOzTO7+s2r9
Power Automate - Power Automate Desktop
Answered

How to paste screenshot into body of Send email message through Outlook

Like (0) ShareShare
ReportReport
Posted on 6 Dec 2023 21:24:54 by 3

I have built a flow in PAD that takes a screenshot of a window as it runs. I know the screenshot is there because if I open a word doc I can paste it with CONTROL +V.   The steps after the screenshot launch Outlook and then Send email message through Outlook .

MikeA1_0-1701897452936.png

I can't figure out how to get the captured screenshot (stored to clipboard) in the body for the email. My first thought was to capture Send Keys {CONTROL}({V}) as a variable and them put the variable in the body or save the the screenshot as the variable and apply it to the body. 

MikeA1_1-1701897659278.png

Are either of those options possible?

 

  • Verified answer
    Agnius Bartninkas Profile Picture
    10,045 Most Valuable Professional on 07 Dec 2023 at 07:24:49
    Re: How to paste screenshot into body of Send email message through Outlook

    You cannot "paste" it into an action like that. If you want something that is stored in the clipboard to be pasted anywhere, you would need to automate the User Interface and send Ctrl+V to paste it. So, you would need to use the Outlook app UI, which is a pain to do.

     

    Alternatively, you should save the screenshot as an actual file, instead of having it in the clipboard. Depending on how you capture the screenshot, there are several ways of doing that.

     

    But when you have it as a file, you can then use Convert file to base64 to convert it to an encoded string. And then you can embed that into the email body like this:

    <img src="data&colon;image/png;base64,{yourBase64String}" alt="SomeImage" />

    Where you should replace {yourBase64String} with the base64 string.

     

    See here for reference: https://learn.microsoft.com/en-us/power-automate/desktop-flows/how-to/add-images-email-messages

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard