Microsoft Power Automate is a software by Microsoft for the automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details https://powerautomate.microsoft.com/en-us/
Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate of all repetitive desktop processes.
Clipboard actions to manipulate or extract the contents of your machine's clipboard. To change the text of the clipboard, use the Set clipboard text action. To retrieve the contents of the clipboard and store them in a variable, use the Get clipboard text action. To clear the clipboard, use the Clear clipboard contents action.
Reading this article, you can learn how to manipulate or extract the contents of your machine's clipboard using Clipboard actions with the Desktop flow in Microsoft Power Automate.
The following important tools are required for developing Microsoft Power Automate,
- Windows 10/11 (Recommended)
- Power Automate Desktop - Download the Power Automate installer
Now we can discuss step-by-step App development.
Step 1. Open Microsoft Power Automate -> New Flow
Next, Give the Flow name as PADClipboard, Click the Create button,
After that, we can see the Desktop flow,
Step 2. For Testing Clipboard actions,
First, Set the clipboard text, Add the Set clipboard text action, Set the ClipboardText parameter as "Welcome to C# Corner" and Click the Save Button.
Getting the clipboard text, Add the Get clipboard text action and variable produced as ClipboardText and Click the Save Button.
For Displaying the clipboard text, Add the Display message action, Set the Message box title Parameter value as "Dispclipboard", Message to display Parameter value as %ClipboardText% and Click Save Button.
Clearing the clipboard text, Add the Clear clipboard contents action and Click the Save Button.
Getting the clipboard text, Add the Get clipboard text action and variable produced as ClipboardText and Click the Save Button.
For Displaying the clipboard text, Add the Display message action, Set the Message box title Parameter value as "Dispclipboard", Message to display Parameter value as %ClipboardText% and Click Save Button.
Now, Save the PADClipboard Desktop Flow,
Step 3. Now we can run your PADClipboard Desktop Flow in Microsoft Power Automate,
The output of the PADClipboard,
After Clearing the Clipboard,
Summary
You have successfully tested the Clipboard action in Desktop flow – PADClipboard in Microsoft Power Automate.