Introduction
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.
The workstation group of actions provides a collection of actions that automate some essential functionalities of your workstation. To print a document, use the Print document action and populate the path of the file you want to print.
Reading this article, you can learn how to print a document using the Print document action in a workstation group of actions with Desktop flow using 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, and Give the Flow name as PADPrint; click the Create button,
After that, we can see the Desktop flow,
Step 2
For Testing Print document action in the Workstation group of actions,
First, Add the Get default printer action, Set the Variable Produced Parameter as PrinterName, and Click the Save Button
For Displaying the Default printer name, Add the Display message action and Set the Message box Title Parameter as Default Printer, Message to display Parameter as "Default Printer is "+%PrinterName% Click Save Button
Next, Add the Print document action, Set Document to print Parameter as <File Path with file name>, and Click the Save Button.
Now, Save the PADPrint Desktop Flow,
Step 3
Now we can run your PADPrint Desktop Flow in Microsoft Power Automate, The output of the PADPrint is,
The default Printer of this Workstation is,
Print option Save as PDF and file name and location of the pdf file as,
The Printed document is,
Summary
You have successfully tested the Print document action in Desktop flow – PADPrint in Microsoft Power Automate.