Printing Documents with Desktop Flow in Microsoft Power Automate

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,

  1. Windows 10/11 (Recommended)
  2. 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,

Build a flow

After that, we can see the Desktop flow,

Actions

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

Actions

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

Messages box

Next, Add the Print document action, Set Document to print Parameter as <File Path with file name>, and Click the Save Button.

Workstation

Print

Now, Save the PADPrint Desktop Flow,

Print Document

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,

Display Message

Print option Save as PDF and file name and location of the pdf file as,

Print

The Printed document is,

Print Document

Summary

You have successfully tested the Print document action in Desktop flow – PADPrint in Microsoft Power Automate.


Similar Articles