Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Democratizing RPA with Power Automate Desktop

You're reading from   Democratizing RPA with Power Automate Desktop Boost your productivity by implementing best practices for automating repetitive desktop processes

Arrow left icon
Product type Paperback
Published in Apr 2023
Publisher Packt
ISBN-13 9781803245942
Length 308 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Peter Krause Peter Krause
Author Profile Icon Peter Krause
Peter Krause
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Chapter 1: Getting Started with Power Automate Desktop 2. Chapter 2: Using Power Automate Desktop and Creating Our First Flow FREE CHAPTER 3. Chapter 3: Editing and Debugging UI Flows 4. Chapter 4: Basic Structure Elements and Flow Control 5. Chapter 5: Variables, UI Elements, and Images 6. Chapter 6: Actions for UI Automation 7. Chapter 7: Automate Your Desktop and Workstation 8. Chapter 8: Automating Standard Business Applications 9. Chapter 9: Leveraging Cloud Services and Power Platform 10. Chapter 10: Leveraging Artificial Intelligence 11. Chapter 11: Working with APIs and Services 12. Chapter 12: PAD Enterprise Best Practices 13. Index 14. Other Books You May Enjoy

Artifacts of the user interface explained

Now that we have explored the basic possibilities of PAD, let’s take a detailed look at the application and its possibilities. PAD consists of two windows:

  • The container window or Power Automate console
  • The Desktop flow designer window

The Power Automate container window

The first window we will see when we start the program is the container window, also known as the Power Automate console. The following screenshot shows this window:

Figure 2.19 – PAD container window

Figure 2.19 – PAD container window

It contains the following elements:

  1. List of UI flows: If you hover over an item in the list, you will be presented with different additional options, such as the play button or the edit button. While the edit button just opens the designer window (see the following figure), the start button runs the flow immediately without opening the designer window first.

You will also get some desktop notifications on the flow’s status (has been started, was successful, and so on):

Figure 2.20 – Windows notification on the flow

Figure 2.20 – Windows notification on the flow

The three dots to the right of the edit button will reveal a context menu where you can also run or edit the flow but also rename, delete, or copy the flow:

Figure 2.21 – Flow list context menu

Figure 2.21 – Flow list context menu

The Details option gives shows the properties of the flow, including its name and description, owner, the date for creation, and the last modification.

  1. The console area switch: You can also switch from the My flows tab to the Examples tab. Here, different examples provided by Microsoft are presented, including automation for Excel, desktop, the web, and more. Although the examples do not cover the scope of the program, it may be worthwhile to have a look there to possibly try out one of them.
  2. Create a new flow: This button launches a dialog where you can enter the name for a new UI flow. Although this is optional, it is reasonable to provide a meaningful name for the flow. There is a Create button to confirm the name and launch the designer window with a blank canvas.
  3. PAD settings: This button launches the Settings dialog. Here, we can modify the launch behavior of PAD and also use a hotkey to stop a running flow. In addition, the monitoring and notification settings can be changed (Windows notification, flow monitoring window, or no notification).
  4. Login information: Clicking on the name in the title bar provides information about the current user and their login information. Here, it is also possible to sign out and log on with another user.

The designer window

Let’s take a closer look at the designer window now:

Figure 2.22 – The designer window of PAD

Figure 2.22 – The designer window of PAD

Here, we have the following elements:

  1. The Actions pane: The left-hand side of the window belongs to the Actions pane. Actions represent functionality that a flow is capable of, such as “Open Excel” or “Get files in a folder.” These actions are grouped into different categories such as System or Folder You can see all the actions that belong to a category by expanding the corresponding item. Just click on the arrow icon on the left of the category. Throughout this book, we will look at each of these actions. At the top of the list, there is also a Search box. If you enter a search term here, the list of actions gets filtered by this search term. We used this in our first flow.
  2. The flow designer area: In the middle of the window, there is a canvas that contains all the actions this flow is made of. Actions can be placed there by dragging them from the Actions pane. When a flow is started, the actions will run in the sequence in which they are listed here. This action list can be rearranged by just clicking and dragging an existing entry and putting it somewhere else. There will be a horizontal line displayed showing where an action can be placed. We saw this in our previous example. You can also double-click on an action to bring up the settings dialog for that action and modify the entries. In this area, there is also an option to look at the subflows. A subflow is just another UI flow that encapsulates a specific set of actions. By using subflows, it is possible to structure a large flow into different pieces. A subflow always belongs to a regular flow and is not shared between other flows.
  3. The flow control bar: The little bar at the top of the action list allows you to save, start, stop, and record a flow. There is also an option to start the flow and go action by action, which is also called debugging. We will take a closer look at this, as well as the recorder, in the next section.
  4. The Variables viewer pane: On the right-hand side, there’s an area that displays the variables of the flow. Variables are an important aspect of a flow for storing information during runtime. Variables will be covered in Chapter 5.
  5. The input elements switch: Please also notice the two additional little icons below the variables icon, {x}. These can be used to switch to the area containing UI elements and images, which will also be covered later. You can hide this area by clicking on the icon.
  6. Action and execution summary: At the bottom, there is a little bar that summarizes the current flow. It is also possible to set a specific delay for the flow to run – in this example, 100 milliseconds.

This is the applications menu bar. In addition to the typical functionality for saving and editing, the debug functionality is also available here once again, in which breakpoints can also be set. This allows a flow to be executed up to a certain point so that we can check the settings and variables in the event of an error:

Figure 2.23 – The Debug menu

Figure 2.23 – The Debug menu

This designer window will also show up in another area at the bottom of the screen when a flow runs into an error. There will be detailed information about where the flow stopped and why. Now that we have a few more details, we’ll use the recorder to create another flow in the next section.

You have been reading a chapter from
Democratizing RPA with Power Automate Desktop
Published in: Apr 2023
Publisher: Packt
ISBN-13: 9781803245942
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image