← Back to Blog

Workflows & Productivity | Published Oct 5, 2026 | Updated Oct 13, 2026 | 6 min read

Power Automate Desktop Clipboard Actions, Explained

By Khushi Yadav

Power Automate Desktop Clipboard Actions, Explained — Edge Drop Guide

Power Automate for desktop has three clipboard actions, all in the Clipboard group of the actions pane: Get clipboard text reads the clipboard into a variable called ClipboardText, Set clipboard text puts text you choose onto the clipboard, and Clear clipboard contents empties it. They handle text only. Combine them with the Text actions (Replace text, Trim text, Change text case) and you can clean, reformat or log whatever you copy.

Below: what each action does, what you need before you start, and four flows built step by step from Microsoft's documented actions.

The three clipboard actions

ActionInputProducesDocumented error
Get clipboard textNoneClipboardText (text)Can't retrieve clipboard contents
Set clipboard textClipboard text (required): a literal or a variable such as %Replaced%NothingCan't set clipboard contents
Clear clipboard contentsNoneNothingNone

There's no action for clipboard images or files. If a flow needs to move files, use the File and Folder actions on the files themselves rather than the clipboard.

Before you start

  • Install it. Power Automate for desktop is available from the Microsoft Store, which doesn't need admin rights and updates automatically, or as an MSI installer, which does need admin rights. It runs on Windows 10 and 11, including Home editions, but not on ARM-based PCs.
  • Sign in. You need an account: a Microsoft account (free; flows are saved to your OneDrive), a work or school account, or an organisation premium account. The app also needs an internet connection.
  • Know the Home edition limit. On Windows 10 Home and Windows 11 Home you can build flows and run them locally, but you can't trigger them from the cloud.

To create a flow, open Power Automate, select New flow, give it a name and select Create. In the flow designer, drag actions from the actions pane into the workspace, and select Run to test. Variables are written between percent signs, such as %ClipboardText%.

Flow 1: Remove tracking parameters from a copied link

Copy a link, run the flow, and paste a clean one.

  1. Add Get clipboard text. It produces ClipboardText.
  2. Add Replace text. Set Text to parse to %ClipboardText%, Text to find to (?<=[?&])utm_[^&#]*&?, turn on Use regular expressions for find and replace, and set Replace with to %''%, an empty text value. It produces Replaced.
  3. Add a second Replace text. Set Text to parse to %Replaced%, Text to find to [?&](?=#|$), turn on regular expressions, and set Replace with to %''%. Rename its output variable to CleanUrl.
  4. Add Set clipboard text with Clipboard text set to %CleanUrl%.

The first pattern removes every utm_ parameter; the second removes a ? or & left dangling at the end. For example, https://example.com/page?utm_source=news&id=5 becomes https://example.com/page?id=5. Power Automate uses the .NET regular expression engine, which supports these patterns. How to copy a clean link without tracking parameters covers other ways to do it.

Flow 2: Tidy a copied code or reference number

Useful when you copy order numbers, SKUs or codes from PDFs and web pages with stray spaces and mixed case.

  1. Get clipboard text.
  2. Trim text with Text to trim set to %ClipboardText% and What to trim left at "whitespace characters from the beginning and end". It produces TrimmedText.
  3. Change text case with Text to convert set to %TrimmedText% and Convert to set to Upper case. It produces TextWithNewCase.
  4. Set clipboard text with %TextWithNewCase%.

To remove spaces inside the text as well, add a Replace text action that finds a single space and replaces it with %''%.

Flow 3: Log what you copied to an Excel sheet

For research or audit work, this adds the current clipboard text and a timestamp to the next empty row of a workbook.

  1. Launch Excel, choosing and open the following document and the path of your log workbook. It produces ExcelInstance.
  2. Get first free column/row from Excel worksheet with %ExcelInstance%. It produces FirstFreeRow.
  3. Get current date and time. It produces CurrentDateTime.
  4. Get clipboard text.
  5. Write to Excel worksheet: Value to write %CurrentDateTime%, Write mode "On specified cell", Column A, Row %FirstFreeRow%.
  6. Write to Excel worksheet again: Value to write %ClipboardText%, Column B, Row %FirstFreeRow%.
  7. Close Excel with Before closing Excel set to Save document.

The workbook now holds everything you logged, so keep it somewhere private and don't log while copying passwords.

Flow 4: Build a reply and clear it afterwards

This assembles a templated message on the clipboard, waits while you paste it, then clears the clipboard.

  1. Display input dialog with Input dialog title "Customer name". It produces UserInput.
  2. Set clipboard text with Clipboard text set to something like Hi %UserInput%, thanks for getting in touch. Your request has been logged.
  3. Display message with Message to display "The reply is on the clipboard. Paste it, then select OK." The flow waits until you select OK.
  4. Clear clipboard contents.

The same final step is worth adding to any flow that puts a password, token or personal data on the clipboard. Clearing the clipboard empties what Ctrl+V would paste; if Windows clipboard history (Win+V) or a clipboard manager is running, it may already have saved its own copy. How to auto-clear the clipboard after pasting a password covers that side.

Handling clipboard errors

Another app can hold the clipboard open for a moment, which makes Get clipboard text or Set clipboard text fail with their documented errors. By default, a desktop flow stops when an action fails. To make clipboard steps more reliable:

  1. Open the action and select On error.
  2. Turn on Retry action if an error occurs. The default is one retry after two seconds; increase it if needed.
  3. If the flow can safely carry on without that step, choose Continue flow run and pick what happens next.

Don't let a failed Set clipboard text pass silently in Flow 4: you'd paste whatever was on the clipboard before, without noticing.

Power Automate, a script or a clipboard manager?

Power Automate is the friendliest option if you prefer building with a visual designer and already work with Excel or web forms. For one-keystroke clipboard tricks, a script is quicker to trigger: see AutoHotkey v2 clipboard scripts or the PowerShell clipboard cheat sheet.

None of these keeps a history of what you copied. For that, use Windows clipboard history or a clipboard manager; best clipboard managers for Windows compares the options.

FAQ

Can Power Automate for desktop copy images to the clipboard?

Not with the Clipboard actions, which handle text only. Work with image files directly using the File actions.

Do I need a paid licence for the clipboard actions?

No. Power Automate for desktop with a Microsoft account is available at no extra cost, and the Clipboard and Text actions are included. Paid plans add cloud triggers, sharing and premium connectors.

Why does my flow paste old text?

Usually a Set clipboard text step failed or ran after the paste. Add error handling to the clipboard action and make sure the paste happens after it.

Related reading

Sources

Khushi Yadav
Written by Khushi Yadav · Author & Content Writer

Khushi Yadav writes Edge Drop's workflow and design guides and is a B.Tech Computer Science Engineering student. Khushi's posts are checked against Microsoft's documentation and the Edge Drop fact sheet.

GitHub · LinkedIn

Copy. Stack. Drop.

Transform your clipboard into an interactive edge shelf. Stack, pin, and drag assets into any app with zero friction.

Download for Windows Get from Microsoft Store

How to Install Guide · First 10 Minutes Guide · Drag & Drop Guide · Edge Drop vs Win+V · Support

Free · Lightweight · Privacy First
Find us on CodeHype