Get a specific emailmessage from Microsoft Outlook
Retrieve a specific emai message by its ID.
type: "io.kestra.plugin.microsoft365.outlook.get"Examples
Get a specific email message
id: get_outlook_message
namespace: company.team
tasks:
- id: get_message
type: io.kestra.plugin.microsoft365.outlook.Get
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
userPrincipalName: "user@example.com"
messageId: "AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e"
Get message from specific user mailbox
id: get_user_message
namespace: company.team
tasks:
- id: get_message
type: io.kestra.plugin.microsoft365.outlook.Get
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
userPrincipalName: "user@example.com"
userEmail: "specific.user@example.com"
messageId: "{{ vars.messageId }}"
includeAttachments: true
Properties
clientId *Requiredstring
Client ID
Azure application (client) ID
clientSecret *Requiredstring
Client Secret
Azure client secret
messageId *Requiredstring
Message ID
Uniques identifier of rhe email message to retrieve
tenantId *Requiredstring
Tenant ID
Azure tenant ID (directory ID)
includeAttachments booleanstring
falseInclude attachments
Whether to include attachment information in the response
scopes string
https://graph.microsoft.com/.defaultScopes
Scopes for Microsoft Graph
userEmail string
User email
Email address of the user whose mailbox to access (optional, uses authenticated user if not specified)
userPrincipalName string
User Principal Name
User email to act on behalf of (optional)
Outputs
message MessageDetail
Message
Email message details
Definitions
io.kestra.plugin.microsoft365.outlook.domain.AttachmentInfo
contentType string
id string
name string
size integer
uri string
io.kestra.plugin.microsoft365.outlook.domain.MessageDetail
bccRecipients array
bodyContent string
bodyPreview string
bodyType string
ccRecipients array
conversationId string
conversationIndex string
fromMail string
hasAttachments boolean
id string
importance string
internetMessageId string
isRead boolean
receivedDateTime string
date-timesenderMail string
sentDateTime string
date-time