How to read mails in uipath

UIPath provides a built-in activity called "Read Email" that allows you to read emails from various email providers, including Gmail, Outlook, and Exchange. Here's a step-by-step guide on how to read emails in UIPath:

Prerequisites:

  1. You need to have a UIPath account and a robot configured.
  2. You need to have an email account set up with the email provider you want to read emails from (e.g., Gmail, Outlook, Exchange).
  3. You need to have the "Read Email" activity installed in your UIPath robot.

Step 1: Configure the Read Email activity

  1. Open your UIPath robot and navigate to the "Activities" pane.
  2. Search for the "Read Email" activity and drag it onto the workflow designer.
  3. Double-click the activity to open its properties.
  4. In the "Read Email" properties, enter the following information:
    • Email Provider: Select the email provider you want to use (e.g., Gmail, Outlook, Exchange).
    • Email Account: Enter the email address and password for the email account you want to read emails from.
    • Folder: Select the folder you want to read emails from (e.g., Inbox, Sent Items, etc.).
    • Search Criteria: Enter the search criteria for the emails you want to read (e.g., subject, sender, recipient, etc.).

Step 2: Configure the email search criteria

  1. In the "Search Criteria" section, you can enter specific search criteria to filter the emails you want to read.
  2. For example, you can enter a subject, sender, or recipient to filter the emails.
  3. You can also use advanced search criteria, such as "From: [sender email]" or "Subject: [subject]".

Step 3: Read the emails

  1. Once you've configured the "Read Email" activity, click the "Run" button to execute the activity.
  2. The activity will connect to the email provider and read the emails that match the search criteria.
  3. The activity will then store the email details in variables, such as "Email Subject", "Email Body", and "Email Attachments".

Step 4: Use the email variables

  1. You can use the email variables in your workflow to perform various actions, such as:
    • Sending a response to the email
    • Saving the email attachments to a file
    • Extracting specific information from the email body
  2. You can also use the email variables to trigger other activities or workflows based on the email content.

That's it! With these steps, you should be able to read emails in UIPath using the "Read Email" activity.