Skip to content

Working with the clipboard

Power Automate Desktop can send keyboard input as hardware input, so it can reproduce user operations such as copy and paste. By using actions, you can also work with the clipboard directly.

Also, if your flow handles sensitive information, data that shouldn’t be seen may be left behind on the clipboard.

This article summarizes the built-in Power Automate Desktop actions for working with the clipboard.

This action stores the text data on the clipboard at the time it runs in a variable.

action

Learn more here

The action can fail with an error if it can’t get the clipboard contents, so be ready for errors with error handling such as an “On block error” block.

This action lets you overwrite the clipboard value directly.

action

Learn more here

This action can also fail with an error if it can’t set the clipboard contents.

This action deletes the clipboard value at the time it runs.

action

If you run the “Get clipboard text” action described above after this action, you’ll see that an empty string is stored.

This action never fails with an error.

Learn more here