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:
For this walk-through, we will use Outlook as our mailbox. You can, however...