Power Automate Desktop Clipboard Actions, Explained
Power Automate Desktop is Microsoft's robotic process automation tool, and it ships with Windows 11 at no extra cost. Among its hundreds of actions is a small Clipboard group with exactly three actions. They are simple, and simple is the point: they let a flow read and write the clipboard the way a person would, inside an automated sequence.
This guide covers what the three actions do, where they fit, and five practical flows for data entry and support work. It is not a full Power Automate tutorial; it is the clipboard chapter.
Getting Power Automate Desktop
Power Automate Desktop ships with Windows 11 at no extra cost; search the Start menu for it. On Windows 10 it is a free download from Microsoft. Flows run locally on your machine as your user, which is why the clipboard actions can see what you copy. Some premium connectors need a paid license, but the Clipboard group and the core desktop actions do not.
One account note: signing in with a Microsoft account unlocks the full feature set and lets you organize flows, but the clipboard actions themselves work in local flows. If your organization manages Power Automate, check with IT before automating anything that touches work data; the same caution as any RPA tool applies.
The three actions
Microsoft's action reference documents the Clipboard group as the way to manipulate or extract the machine's clipboard contents.
Get clipboard text. Reads the current clipboard and stores it in a variable called ClipboardText. Takes no input. This is the action that lets a flow react to what you (or a previous step) copied. If retrieval fails, the documented exception is "Can't retrieve clipboard contents."
Set clipboard text. Writes the text you provide to the clipboard. The next paste anywhere will paste that value. Takes one required input: the clipboard text, which can be a literal string or a variable. If setting fails, the documented exception is "Can't set clipboard contents."
Clear clipboard contents. Empties the clipboard. Takes no input, produces no variables. Useful at the end of a flow that handled sensitive data, so secrets do not sit on the clipboard after the automation finishes.
Three actions, no more. There is no "get clipboard image" or "get clipboard files" in this group; it is text only. If your flow needs images or files off the clipboard, Power Automate Desktop is the wrong tool for that step.
Where clipboard actions fit in a flow
The pattern is always the same: the flow either prepares text and puts it on the clipboard for a person to paste, or it reads what is on the clipboard and does something with it. The clipboard is the handoff point between the automation and the human.
Example skeleton: a flow reads a customer ID from Excel, builds a templated reply with Set clipboard text, and shows a message saying "reply ready to paste." The human reviews and pastes. The automation does the assembly; the person keeps the judgment.
Five flows worth building
1. Clean URLs before sharing. Get clipboard text, then use text actions to strip tracking parameters (everything from ?utm_ onward), then Set clipboard text with the clean URL. The manual version is How to Copy a Clean Link Without Tracking Parameters; this automates it for support staff who share links all day.
2. Log copies to Excel. After Get clipboard text, append the ClipboardText variable with a timestamp to an Excel sheet. Useful for research sessions where you need an audit trail of what was collected and when. Keep the log local and treat it as sensitive: it is a copy of your clipboard.
3. Normalize pasted data. Get clipboard text, trim whitespace, fix line breaks, convert to uppercase for codes or SKUs, then Set clipboard text. Data entry from PDFs and web pages arrives dirty; this is the deterministic version of the cleanup in How to Strip Tracking and Soft Hyphens From Copied Text.
4. Template assembly. Build a message from variables (name, order number, date) with Set clipboard text, ready to paste into a ticket or chat. Faster than a text expander for multi-field templates, because the flow can pull the fields from Excel or a web page first.
5. Secure cleanup. At the end of any flow that touched passwords or tokens, run Clear clipboard contents. Clipboard managers with auto-delete timers do the same job (How to Auto-Delete Clipboard History on a Timer); in a flow, this action is the equivalent.
Error handling in clipboard flows
The two documented exceptions are "Can't retrieve clipboard contents" and "Can't set clipboard contents." Both usually mean the same thing: another application has the clipboard locked at that moment. Browsers and Office apps lock the clipboard briefly during heavy copies. The fix is a short Wait action before the clipboard step, or a retry loop on the exception. Do not let a flow fail silently on a clipboard error: if the template did not reach the clipboard, the human pastes stale text thinking it is fresh.
Limits to know
Clipboard actions are text-only. Flows run on your machine as your user, so a flow that reads the clipboard can read everything you copy while it runs; do not run untrusted flows. And Power Automate Desktop is Windows automation, not a clipboard manager: it does not keep history, search, or pinning. For the history side, pair it with a manager: How to Filter Clips by Text, Links, Images, and Files.
Related reading
- How to Copy a Clean Link Without Tracking Parameters
- How to Strip Tracking and Soft Hyphens From Copied Text
- Accountants: Stage Invoice Lines, Screenshots, and Portal Pastes Locally
- Support Agents: When a Clipboard Shelf Beats Macro Expanders (and When It Doesn't)
- How to Auto-Delete Clipboard History on a Timer
- How to Pause Clipboard Capture When You're Copying Secrets
Sources
- Microsoft Learn: Clipboard actions reference, Power Automate Desktop (Get clipboard text, Set clipboard text, Clear clipboard contents): https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/clipboard
- C# Corner: Clipboard actions in Desktop flow using Microsoft Power Automate (tutorial walkthrough): https://www.c-sharpcorner.com/article/clipboard-actions-in-desktop-flow-using-microsoft-power-automate
- Cheatography: Power Automate Desktop Actions Cheat Sheet (Clipboard group listing): https://cheatography.com/vjr/cheat-sheets/power-automate-desktop-actions/
Deepender Yadav is a B.Tech Computer Science Engineering student and software developer interested in building practical software and open-source projects.
GitHub · LinkedInCopy. 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