Description

Retrieves email messages using the specified Outlook account.



Attributes

Input

  • Account - The Outlook account used to locate mail message to be moved.

  • MailFolder - The mail folder where the mail message is to be moved.

  • MailMessage - The mail message to be moved. This field only supports Mail Message objects.

Common

  • ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.

Misc

  • DisplayName - Renames the activity.


Example

  1. Create a Select.Collections.Generic.List<System.Net.Mail.MailMessage> variable called mailList.
  2. Add a Get Outlook Mails activity inside the initial Sequence. 
  3. In the Get Outlook Mails MailMessages field under Attributes, add the mailList variable.
  4. In the Get Outlook Mails Account field, type the email address of the account that you will use.
  5. In the Get Outlook Mails Mail Folder field, type "Inbox".
  6. After the Get Outlook Mails activity, add a Move Outlook Mail activity.
  7. In the Move Outlook Mail Account field under Attributes, type the email address of the account that you will use.
  8. In the Move Outlook Mail Mail Message field, insert mailList(0).
  9. In the Move Outlook Mail Mail Folder field, write "Archive"

    The use case should look as the following screenshot:



After execution, the first mail gathered by the Get Outlook Mails should be moved from the Inbox folder to the Archive folder.