Get a specific emailmessage from Microsoft Outlook

Retrieve a specific emai message by its ID.

yaml
type: "io.kestra.plugin.microsoft365.outlook.Get"

Get a specific email message

yaml
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: "[email protected]"
    messageId: "AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e"

Get message from specific user mailbox

yaml
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: "[email protected]"
    userEmail: "[email protected]"
    messageId: "{{ vars.messageId }}"
    includeAttachments: true
Properties

Client ID

Azure application (client) ID

Client Secret

Azure client secret

Message ID

Uniques identifier of rhe email message to retrieve

Tenant ID

Azure tenant ID (directory ID)

Default false

Include attachments

Whether to include attachment information in the response

Default https://graph.microsoft.com/.default

Scopes

Scopes for Microsoft Graph

User email

Email address of the user whose mailbox to access (optional, uses authenticated user if not specified)

User Principal Name

User email to act on behalf of (optional)

Message

Email message details

SubType string
SubType string
Format date-time
Format date-time
SubType string