yaml
type: "io.kestra.plugin.microsoft365.outlook.List"
yaml
id: list_outlook_emails
namespace: company.team

tasks:
  - id: list_emails
    type: io.kestra.plugin.microsoft365.outlook.List
    tenantId: "{{ secret('AZURE_TENANT_ID') }}"
    clientId: "{{ secret('AZURE_CLIENT_ID') }}"
    clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
    userEmail: "user@example.com"
    folderId: "inbox"
    top: 10

yaml
id: list_filtered_emails
namespace: company.team

tasks:
  - id: list_emails
    type: io.kestra.plugin.microsoft365.outlook.List
    tenantId: "{{ secret('AZURE_TENANT_ID') }}"
    clientId: "{{ secret('AZURE_CLIENT_ID') }}"
    clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
    userEmail: "user@example.com"
    folderId: "inbox"
    filter: "isRead eq false and receivedDateTime ge {{ now() | dateAdd(-7, 'DAYS') | date('yyyy-MM-dd') }}T00:00:00Z"
    top: 50
    fetchType: STORE

yaml
id: get_first_email
namespace: company.team

tasks:
  - id: get_first
    type: io.kestra.plugin.microsoft365.outlook.List
    tenantId: "{{ secret('AZURE_TENANT_ID') }}"
    clientId: "{{ secret('AZURE_CLIENT_ID') }}"
    clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
    userEmail: "user@example.com"
    folderId: "inbox"
    fetchType: FETCH_ONE
    top: 1
Properties
DefaultFETCH
Possible Values
STOREFETCHFETCH_ONENONE
Defaultinbox
Defaulthttps://graph.microsoft.com/.default
Default50
Default0
Definitions
bodyPreviewstring
conversationIdstring
fromMailstring
hasAttachmentsboolean
idstring
importancestring
isReadboolean
receivedDateTimestring
Formatdate-time
senderMailstring
sentDateTimestring
Formatdate-time
subjectstring
Definitions
bodyPreviewstring
conversationIdstring
fromMailstring
hasAttachmentsboolean
idstring
importancestring
isReadboolean
receivedDateTimestring
Formatdate-time
senderMailstring
sentDateTimestring
Formatdate-time
subjectstring
Formaturi