Skip to content

GetOutlookMailMessages

Function Description

TIP

Retrieve email messages from Outlook

Configuration Item Description

General

Command Input

  • MailFolderstring: The default is' inbox ', and multi-level directories are separated by commas in English

  • Accountstring: Account used to access email messages to be retrieved

  • TopInteger: Number of messages retrieved from the top of the list

  • OnlyUnreadMessagesBoolean: Specify whether to retrieve only unread messages. By default, this checkbox is selected

  • SaveAttachmentsBoolean: After selecting, the email attachment will be saved

  • AttachmentsSaveFolderstring: Please enter or select the path to save the attachment

Command Output

  • MessagesTList<TMailMessage>: Retrieve email messages as a collection of email message objects

Advanced

  • Filterstring: String used as a filter for email messages to be retrieved

  • SortOrderInteger: Sort by recipient date

  • MarkAsReadBoolean: Specify whether to mark retrieved emails as read. By default, clear this checkbox

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None