ZelaxyDocs
Tool Integrations
Tool

Outlook

Send, read, and manage emails through Microsoft Outlook

Outlook

Send, read, and search Outlook emails via Microsoft Graph API. Full integration with Microsoft 365 email including attachments and calendar.

Overview

PropertyValue
Typeoutlook
CategoryTool — Email
AuthOAuth 2.0 (Microsoft)

Operations

OperationDescription
Send EmailCompose and send an email
Read EmailsFetch emails from inbox/folders or read a specific email by Message ID
Search EmailsSearch by subject, sender, date
List FoldersGet all mail folders

Configuration

SettingTypeDescription
Microsoft AccountOAuthConnect Microsoft 365
ToShort inputRecipient email(s)
SubjectShort inputEmail subject
BodyLong textEmail body (HTML supported)
CC / BCCShort inputCarbon copy recipients
Reply to Message IDShort inputMessage ID to reply to (for threading)
Conversation IDShort inputConversation ID for threading
Message IDShort inputSpecific Outlook message ID to fetch — overrides Folder. Supports variable references like {{loop.currentItem}} or {{webhook.payload.message_id}}
FolderFolder selectorMail folder to read from (ignored when Message ID is provided)
Include AttachmentsSwitchDownload and include attachment data
Number of EmailsShort inputNumber of emails to retrieve (default: 1, max: 10)

Outputs

Read Operation

FieldTypeDescription
contentstringEmail body as plain text (HTML is stripped automatically)
metadatajsonEmail metadata object (see below)
attachmentsjsonArray of attachment objects (when Include Attachments is ON)

metadata object fields:

FieldTypeDescription
idstringOutlook message ID
conversationIdstringConversation thread ID
fromstringSender formatted as "Name <email>"
tostringRecipients formatted as "Name <email>", comma-separated
ccstringCC recipients formatted as "Name <email>", comma-separated
subjectstringEmail subject line
datestringReceived date/time (ISO 8601)
hasAttachmentsbooleanWhether the email has attachments
attachmentCountnumberNumber of attachments
isReadbooleanWhether the email has been read
importancestringEmail importance level
bodyPreviewstringShort preview of the email body

attachments array item fields:

FieldTypeDescription
namestringAttachment filename
mimeTypestringMIME type (e.g., application/pdf)
sizenumberFile size in bytes
dataBufferRaw attachment data
contentstringText content (for text-based attachments only)

Send / Draft Operations

FieldTypeDescription
messagestringStatus message
messageIdstringSent/draft message ID
statusstringSend/draft status

Trigger Mode

When Outlook is used as a trigger (first block), it outputs:

FieldTypeDescription
emailjsonFull email object with id, subject, from, to, bodyText, bodyHtml, attachments, etc.
rawEmailjsonComplete raw Microsoft Graph API response (if enabled)

Reading a Specific Email by ID

You can fetch a single email by its Outlook message ID. This is useful when integrating with external platforms that send you message IDs (e.g., via webhook).

How it works:

  1. Leave the Folder field empty
  2. Enter the message ID in the Message ID field (or use a variable like {{webhook.payload.message_id}})
  3. Enable Include Attachments if you need attachment data
  4. The tool calls GET /v1.0/me/messages/{messageId}?$expand=attachments directly via the Microsoft Graph API

When Message ID is provided, the Folder setting is ignored.

Example: Process Selected Emails from External Platform

[Webhook (receives message_ids[])] → [Loop over IDs] → [Outlook: Read by ID] → [Agent: Process] → [API: Send results back]

Outlook Read Config:

  • Message ID: {{loop.currentItem}}
  • Include Attachments: ON
  • Folder: (leave empty)

Accessing outputs in downstream blocks:

Email body:    {{outlook.content}}
Subject:       {{outlook.metadata.subject}}
Sender:        {{outlook.metadata.from}}
Recipients:    {{outlook.metadata.to}}
Message ID:    {{outlook.metadata.id}}
Attachments:   {{outlook.attachments}}

Example: Automated Report Distribution

Workflow:

[Starter (schedule: weekly Mon 8am)] → [Agent: Generate Report] → [Outlook: Send]

The Agent generates a weekly performance report and Outlook sends it to the team distribution list.

Tips

  • Microsoft Graph powers this — same auth works for Teams, OneDrive, SharePoint
  • HTML body supported for rich email formatting — read output auto-strips HTML to plain text
  • Combine with Teams for a full Microsoft communication stack
  • Output parity with Gmailcontent, metadata, and attachments fields match the Gmail block structure, making it easy to swap between providers
  • Rate limits — Microsoft Graph API has per-app and per-mailbox throttling limits