Take Screenshot Action in Desktop Flow Using Microsoft Power Automate

Microsoft Power Automate

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

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 take a screenshot of the foreground window or the specified Screen using the Takes a screenshot action and save the image in a file or to the clipboard.

Reading this article, you can learn how to take a screenshot of the foreground window or the specified Screen using the Takes a screenshot 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

Next, Give the Flow name as PADTakescreenshot, Click the Create button,

Build a Flow

After that, we can see the Desktop flow,                                           

Action in Desktop Flow

Step 2. For Testing, Takes a screenshot of action in the Workstation group of actions,

In the Takes a screenshot action, Capture Parameter has 4 types All screens, Primary Screen, Select Screen, and Foreground window.

Action in Desktop Flow

Add the Takes a screenshot action, Set Capture Parameter value as “All screens”, Save screenshot to as “File”, Image file Parameter value as “*****File Path*****”, Image format Parameter value as “PNG”, and Click Save Button.

Action in Desktop Flow

Add the Takes a screenshot action, Set Capture Parameter value as “Primary screen”, Save screenshot to Parameter value as “File”, Image file Parameter value as “*****File Path*****”, Image format Parameter value as “PNG”, and Click Save Button.

Action in Desktop Flow

Add the Takes a screenshot action, Set Capture Parameter value as “Select screen”, Screen to capture Parameter value as 1, Save screenshot to Parameter value as “File”, Image file Parameter value as “*****File Path*****”, Image format Parameter value as “PNG”, and Click Save Button.

Action in Desktop Flow

Add the Takes a screenshot action, Set Capture Parameter value as “Foreground window”, Save screenshot to Parameter value as “File”, Image file Parameter value as “*****File Path*****”, Image format Parameter value as “PNG”, and Click Save Button.

Action in Desktop Flow

Now, Save the PADTakescreenshot Desktop Flow,

Action in Desktop Flow

Step 3. Now we can run your PADTakescreenshot Desktop Flow in Microsoft Power Automate, 

The output of the PADTakescreenshot and Capture Parameter value as All screens,

Action in Desktop Flow

The output of the PADTakescreenshot and Capture Parameter value as Primary Screen,

Action in Desktop Flow

The output of the PADTakescreenshot and Capture Parameter value as Select Screen,

Action in Desktop Flow

The output of the PADTakescreenshot and Capture Parameter value as Foreground window,

Action in Desktop Flow

Summary

Now, you are successfully tested. Takes a screenshot action in Desktop flow – PADTakescreenshot in Microsoft Power Automate.


Similar Articles