Get Emails#

Get emails via Exchange.

Server[Text] EWS Exchange Server. Default server: https://<mail-server>/ews/exchange.asmx
Domain[Text] Domain for authentication on the server.
Username[Text] Username for authentication on the server.
User Password[Text/SecureString] User password for authentication on the server.
VersionExchange version.
Folder Name[Text] Name of the folder in Exchange. For example: "Inbox" or "Inbox". If necessary, specify nested folders using the character '\'. For example: "Inbox\TestFolder".
Shared Mailbox[Text] Shared mailbox of the account. For example "secondemail@domain.com".
Number of Emails[Number] The number of the most recent received emails to be added to the final list.
Only UnreadIf enabled, only unread emails will be retrieved.
Mark as ReadIf enabled, all retrieved unread messages will be marked as read.
Result

[List] Returns a list of MailItem objects, each representing an email with data. Indexing starts at zero. Example of available properties:

  • Body - plain text of the message;
  • HTMLBody - text of the message in HTML format;
  • Sender.Address - email of the sender;
  • Sender.Name - name of the sender (if available);
  • Subject - subject of the email.

For example, to get the sender's email of the first message: $Result[0].Sender.Address

Error Handling Level

Select the error handling level. Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - default;
  • "Release" - output disabled;
  • "Debug" - main information output;
  • "Detailed" - detailed information output.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.