Actions4
- Item Actions
- Attachment Actions
Attachment → Get
AI-generatedOverview
This n8n node allows you to interact with Microsoft Exchange Web Services (EWS) to retrieve attachments by their ID. The "Attachment: Get" operation is useful for automating workflows that need to fetch email or calendar item attachments from an Exchange server, such as archiving files, processing documents, or integrating with other systems.
Example scenarios:
- Downloading invoice PDFs attached to incoming emails for further processing.
- Automatically saving attachments from a monitored mailbox to cloud storage.
- Extracting and analyzing document attachments for compliance or reporting.
Properties
| Name | Type | Meaning |
|---|---|---|
| Authentication | options | Means of authenticating with the service. Only "NTLM" is supported. |
| Attachment ID | string | The unique identifier of the attachment to retrieve. Required property. |
Output
The node outputs a JSON object containing the details of the retrieved attachment. If the attachment is a file, binary data may be included in the output, representing the file content. The exact structure depends on the EWS response, but typically includes fields such as:
Name: The name of the attachment.ContentType: The MIME type of the attachment.Size: The size of the attachment in bytes.ContentId: The content ID if available.IsInline: Whether the attachment is inline.- Binary data: If present, contains the actual file content.
Dependencies
- External Service: Requires access to a Microsoft Exchange server with EWS enabled.
- API Credentials: Needs valid EWS credentials configured in n8n under the "ewsApi" credential type.
- Authentication: Only NTLM authentication is supported for this operation.
- n8n Configuration: Ensure the "ewsApi" credential is set up and tested successfully.
Troubleshooting
Common issues:
- Invalid Credentials: If the provided EWS credentials are incorrect or lack permissions, authentication will fail.
- Error message:
Settings are not valid or authentification failed: ... - Resolution: Double-check your username, password, domain, and EWS endpoint URL in the credential settings.
- Error message:
- Missing Attachment ID: If the "Attachment ID" is empty or invalid, the node will fail to retrieve the attachment.
- Resolution: Ensure you provide a valid Attachment ID, possibly obtained from a previous node.
- No Authentication Method Found: If an unsupported authentication method is selected.
- Error message:
No authentification method found - Resolution: Use only the supported "NTLM" authentication option.
- Error message: