UiPath Activities Guide

Get Outlook Mail Messages

UiPath.Mail.Outlook.Activities.GetOutlookMailMessages

Retrieves email messages from Outlook.

Properties

Input

  • MailFolder - The mail folder from which the messages are to be retrieved.
  • Account - The account used to access the messages that are to be retrieved.

Options

  • Filter - A string used as a filter for the messages to be retrieved.
  • OnlyUnreadMessages - Specifies whether to retrieve only unread messages. By default, this check box is selected.
  • MarkAsRead - Specifies whether to mark retrieved messages as read. By default, this check box is cleared.
  • Top - The number of messages to be retrieved starting from the top of the list. If the number of messages you wish to retrieve is larger than 30, we recommend using the the Int32.MaxValue .NET function in this field.

Important!

If this field is empty, the activity returns no messages.

Common

  • DisplayName - The display name of the activity.
  • TimeoutMS - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).

Output

  • Messages - The retrieved messages as a collection of MailMessage objects.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Get Outlook Mail Messages


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.