Skip to main content

Outlook Get Attachments

Controlled node

Overview

Fetches attachments from an Outlook email message by its message ID and saves them to the library. This node requires an active Outlook connection and is typically used in conjunction with other Outlook nodes like Get Inbox or Search Emails to retrieve files attached to emails.

Inputs

InputTypeDescriptionDefault
RunEventTriggers the node to fetch attachments from the specified message.-
Message IDTextThe unique identifier of the Outlook message to fetch attachments from.-
ConnectionsConnectionThe Outlook connection to use for fetching attachments. Configure this in the properties panel.-

Outputs

OutputTypeDescription
AttachmentsDataAn array of attachment objects retrieved from the email. Each attachment includes metadata such as filename, size, and content. Returns an error message string if the fetch fails.
DoneEventFires when the node has successfully completed fetching attachments.

Runtime Behavior

When triggered, the node connects to the specified Outlook account using the provided connection, retrieves all attachments from the message with the given ID, and saves them to the project's library. The attachments are returned as an array of file objects that can be passed to other nodes for processing, such as Read PDF, Read Document, or Write To Library.

If the connection is invalid, the message ID is missing, or no attachments exist on the message, the node will return an empty array or an error message in the Attachments output.

Example

Scenario: Downloading attachments from unread emails in your inbox.

  1. Use an Outlook Get Inbox node to fetch recent messages.
  2. Connect the Messages output to a For Each node to iterate through each email.
  3. Inside the loop, connect the current message's ID to the Message ID input of Outlook Get Attachments.
  4. Connect the Attachments output to a For Each node to process each attachment individually.
  5. Use Read PDF or Read Document nodes to parse the attachment contents, or Write To Library to organize them into specific folders.
[Outlook Get Inbox] 
↓ (messages)
[For Each]
↓ (element.id)
[Outlook Get Attachments]
↓ (attachments)
[For Each]
↓ (element)
[Read PDF] → [AI Write] (analyze content)