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
- Create a Select.Collections.Generic.List<System.Net.Mail.MailMessage> variable called mailList.
- Add a Get Outlook Mails activity inside the initial Sequence.
- In the Get Outlook Mails MailMessages field under Attributes, add the mailList variable.
- In the Get Outlook Mails Account field, type the email address of the account that you will use.
- In the Get Outlook Mails Mail Folder field, type "Inbox".
- After the Get Outlook Mails activity, add a Move Outlook Mail activity.
- In the Move Outlook Mail Account field under Attributes, type the email address of the account that you will use.
- In the Move Outlook Mail Mail Message field, insert mailList(0).
- 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.