Skip to content

Microsoft 365 Outlook

This module integrates Microsoft Outlook via Microsoft Graph API. Available operations:

  • List emails: Lists emails from a specific folder (inbox, sentitems, drafts, deleteditems) with OData filters and unread-only option.
  • Search emails: Searches emails by free text across the entire mailbox.
  • Read email: Gets the full content of an email including HTML body, attachments, CC, BCC and conversationId. Option to mark as read.
  • Send email: Sends emails with support for HTML, CC, BCC, importance, attachments (Base64) and saving to Sent Items.
  • Delete email: Deletes an email by ID.
  • Move email: Moves an email to another folder.
  • Get attachments: Gets the list of attachments for an email with Base64 content.
ParameterTypeRequiredDescription
credentials_idcredentialsYesConfigured Microsoft OAuth account
operationselectYesOperation to perform
ParameterTypeRequiredDescription
tostringYesRecipients separated by comma
subjectstringYesEmail subject
bodytextareaYesMessage body
ccstringNoCC recipients
bccstringNoBCC recipients
isHtmlstringNoBody is HTML (default: true)
saveToSentItemsstringNoSave to Sent Items (default: true)
ParameterTypeRequiredDescription
folderselectNoFolder: inbox, sentitems, drafts, deleteditems (default: inbox)
topstringNoMaximum emails (default: 20)
filterstringNoOData filter (e.g.: from/emailAddress/address eq ‘test@mail.com’)
unreadOnlystringNoUnread only (true/false)
ParameterTypeRequiredDescription
messageIdstringYesMessage ID to read
markAsReadstringNoMark as read (true/false)
ParameterTypeRequiredDescription
searchTextstringYesText to search for
topstringNoMaximum results (default: 20)
ParameterTypeRequiredDescription
messageIdstringYesMessage ID to delete

Requires Microsoft OAuth2 type credentials with:

  • Scopes: Mail.ReadWrite, Mail.Send
  • The module manages token refresh automatically
{
"nextModule": "siguiente_modulo",
"data": {
"sendResult": {
"success": true,
"message": "Email enviado correctamente",
"to": "destinatario@empresa.com",
"subject": "Informe mensual",
"sentAt": "2026-03-23T10:00:00Z"
}
},
"_meta_": { "operation": "sendEmail", "microsoftService": "outlook" }
}
{
"credentials_id": "mi-cuenta-ms365",
"operation": "sendEmail",
"to": "cliente@empresa.com",
"subject": "Resumen semanal",
"body": "<h1>Resumen</h1><p>Adjunto el informe.</p>",
"isHtml": "true"
}
  • Microsoft Graph API - Mail endpoints (/me/messages, /me/sendMail, /me/mailFolders)
  • Recipients can be passed as a comma-separated string or as an array
  • Attachments are sent as fileAttachment with Base64 content
  • Emails are sorted by received date descending
  • Search uses Microsoft Graph $search which searches in subject, body and sender
  • Supports continueOnError to continue the flow on errors