Book Image

Robotic Process Automation with Automation Anywhere

By : Husan Mahey
Book Image

Robotic Process Automation with Automation Anywhere

By: Husan Mahey

Overview of this book

With an increase in the number of organizations deploying RPA solutions, Robotic Process Automation (RPA) is quickly becoming the most desired skill set for both developers starting their career and seasoned professionals. This book will show you how to use Automation Anywhere A2019, one of the leading platforms used widely for RPA. Starting with an introduction to RPA and Automation Anywhere, the book will guide you through the registration, installation, and configuration of the Bot agent and Control Room. With the help of easy-to-follow instructions, you’ll build your first bot and discover how you can automate tasks with Excel, Word, emails, XML, and PDF files. You’ll learn from practical examples based on real-world business scenarios, and gain insights into building more robust and resilient bots, executing external scripts such as VBScripts and Python, and adding error handling routines. By the end of this RPA book, you’ll have developed the skills required to install and configure an RPA platform confidently and have a solid understanding of how to build complex and robust, yet performant, bots.
Table of Contents (20 chapters)

Reading emails and attachments

Once connected to our mailbox, we want our bot to process emails in one form or another. More than likely, our manual task would involve working with specific emails, such as emails sent from a particular sender. It could also include saving any attachments from our emails. In this section, you will learn how to create a loop to iterate through the inbox and only read unread emails from a specific sender. The bot will then change the email status to read and save any attachments.

You will also be introduced to the Dictionary type variable; Automation Anywhere already has a pre-built dictionary for emails. A Dictionary type variable stores a value for a given key value. Together, these are known as a key-value pair. For each email that your bot reads, the Dictionary variable will store the following information:

Figure 13.16 – Email dictionary

Figure 13.16 – Email dictionary

For this walk-through, we will use Outlook as our mailbox. You can, however...