Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Suggested answer

Microsoft Power Automate Desktop - Paste Screenshot in CSV Worksheet

(0) ShareShare
ReportReport
Posted on by 6
I am using Microsoft Power Automate Desktop. I want to take screenshot of current application present on screen(web application / desktop application...) then bot perform few other actions. at the end of all actions add that screenshot in new worksheet of CSV. How to do that?
Categories:
  • Suggested answer
    eetuRobo Profile Picture
    3,454 Super User 2025 Season 1 on at
    Microsoft Power Automate Desktop - Paste Screenshot in CSV Worksheet
    As @ mentioned you can keep it stored in the clipboard and only paste it in the end of the flow unless you need to use the clipboard in between the screenshot and pasting it into the Excel sheet.

    So if you need to use the clipboard in other parts of the flow then you could use script to accomplish this. So save the image to jpg file not to clipboard and then have script that copies that image file to your clipboard clipboard just before pasting it in the Excel.


    PowerShell script:
    Add-Type -AssemblyName System.Windows.Forms
    Add-Type -AssemblyName System.Drawing
    
    # Specify the path to your image file
    $imagePath = "C:\Users\Eetu\Downloads\test123.jpg"
    
    # Load the image
    $image = [System.Drawing.Image]::FromFile($imagePath)
    
    # Set image to clipboard
    [System.Windows.Forms.Clipboard]::SetImage($image)
    
    Write-Host "Image copied to clipboard."

    Full example flow:
  • Riyaz_riz11 Profile Picture
    2,747 Super User 2025 Season 1 on at
    Microsoft Power Automate Desktop - Paste Screenshot in CSV Worksheet
    @PS-05051208-0

    It's not a problem anyway if it's copied it will be stored in the clipboard
  • PS-05051208-0 Profile Picture
    6 on at
    Microsoft Power Automate Desktop - Paste Screenshot in CSV Worksheet
    @Riyaz_riz11 Thanks you for answering. but after taking screenshot, I am using few other action(as I mentioned in question) and not immediately pasting in excel (as this excel will be downloaded at the end and i have to paste screenshot after that). So I cant i cant save in clipboard as I am not immediately pasting screenshot in CSV.
  • Suggested answer
    Riyaz_riz11 Profile Picture
    2,747 Super User 2025 Season 1 on at
    Microsoft Power Automate Desktop - Paste Screenshot in CSV Worksheet
    Hi,

    You can use action take screenshot and use clipboard and use excel instance attach running instance and use send keys to paste the content.
     
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
    Regards,
    Riyaz

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 172 Super User 2025 Season 1

#2
Riyaz_riz11 Profile Picture

Riyaz_riz11 58 Super User 2025 Season 1

#3
CU12050101-0 Profile Picture

CU12050101-0 34

Overall leaderboard