Skip to content

[ENHANCEMENT] Microsoft Outlook: New Attachment Received & Download Attachment #16270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dannyroosevelt opened this issue Apr 12, 2025 · 1 comment · May be fixed by #16324
Open

[ENHANCEMENT] Microsoft Outlook: New Attachment Received & Download Attachment #16270

dannyroosevelt opened this issue Apr 12, 2025 · 1 comment · May be fixed by #16324
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed triaged For maintainers: This issue has been triaged by a Pipedream employee trigger / source New trigger / source request

Comments

@dannyroosevelt
Copy link
Collaborator

dannyroosevelt commented Apr 12, 2025

Potentially model it off of Gmail New Attachment Received trigger — how is the attachment returned? Via a publicly accessible url? Or a file you need to download to tmp to process?


Source: New Attachment Received

Triggers a workflow when a new email containing one or more attachments arrives in a specified Microsoft Outlook folder. Emits an event for each attachment found.

Props:

Prop Type Description API Mapping / Concept
folderId string Optional. The ID of the folder to monitor. Defaults to the Inbox. mailFolders/{folder-id} segment in API subscription/polling target
timer object Optional. Configure the polling interval if using polling trigger. Not applicable for instant (webhook) trigger. Polling frequency / Webhook subscription (changeNotifications)

Output / Emitted Data:

The source emits an object for each attachment, containing details like:

  • attachmentId: The unique ID of the attachment.
  • messageId: The unique ID of the message the attachment belongs to.
  • name: The filename of the attachment.
  • contentType: The MIME type of the attachment (e.g., "application/pdf").
  • size: The size of the attachment in bytes.
  • isInline: Whether the attachment is intended to be displayed inline.
  • messageSubject: The subject of the email message.
  • messageSender: Information about the sender of the email.
  • messageReceivedDateTime: When the email was received.

Note: This source typically relies on Microsoft Graph change notifications (webhooks) for near real-time triggering or periodic polling of the specified folder, filtering for messages where hasAttachments is true. It then fetches attachment details for new messages.

API Document:


Action: Download Attachment

Retrieves the raw content of a specific email attachment from Microsoft Outlook using its Message ID and Attachment ID.

Props:

Prop Type Description API Mapping
messageId string The ID of the message containing the attachment. {message-id} segment in the API path
attachmentId string The ID of the attachment to download. {attachment-id} segment in the API path
filePath string The path to tmp dir

Output:

Returns an object containing:

  • fileName: The original filename of the attachment.
  • contentType: The MIME type of the attachment.
  • filePath: A temp file path within the Pipedream execution environment where the content is stored.

Note: This action primarily uses the GET /messages/{message-id}/attachments/{attachment-id}/$value endpoint to retrieve the raw attachment data. For file attachments, it might alternatively retrieve the contentBytes property from the standard GET /messages/{message-id}/attachments/{attachment-id} endpoint if the attachment is small (under 3MB), but using /$value is more general.

API Document: Get attachment (including raw content via $value)

@dannyroosevelt dannyroosevelt added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed trigger / source New trigger / source request labels Apr 12, 2025
@vunguyenhung vunguyenhung added the triaged For maintainers: This issue has been triaged by a Pipedream employee label Apr 15, 2025
@vunguyenhung
Copy link
Collaborator

@dannyroosevelt, currently for the Gmail New Attachment Received source, each event returns an Attachment ID, where user can use the Gmail - Download Attachment to download it to tmp dir.

@vunguyenhung vunguyenhung changed the title [TRIGGER] Microsoft Outlook New Attachment Received [ENHANCEMENT] Microsoft Outlook: New Attachment Received & Download Attachment Apr 15, 2025
@michelle0927 michelle0927 self-assigned this Apr 16, 2025
@michelle0927 michelle0927 moved this from Prioritized to Doing in Component (Source and Action) Backlog Apr 16, 2025
@michelle0927 michelle0927 moved this from Doing to Ready for PR Review in Component (Source and Action) Backlog Apr 16, 2025
@lcaresia lcaresia moved this from Ready for PR Review to Ready for QA in Component (Source and Action) Backlog Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed triaged For maintainers: This issue has been triaged by a Pipedream employee trigger / source New trigger / source request
Projects
Development

Successfully merging a pull request may close this issue.

3 participants