List
List
yaml
type: "io.kestra.plugin.microsoft365.outlook.List"Examples
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
clientId *Requiredstring
clientSecret *Requiredstring
tenantId *Requiredstring
userEmail *Requiredstring
fetchType string
Default
FETCHPossible Values
STOREFETCHFETCH_ONENONEfilter string
folderId string
Default
inboxscopes string
Default
https://graph.microsoft.com/.defaulttop integerstring
Default
50userPrincipalName string
Outputs
count integer
Default
0folderId string
hasNextPage boolean
message
Definitions
io.kestra.plugin.microsoft365.outlook.domain.MessageSummary
bodyPreviewstring
conversationIdstring
fromMailstring
hasAttachmentsboolean
idstring
importancestring
isReadboolean
receivedDateTimestring
Format
date-timesenderMailstring
sentDateTimestring
Format
date-timesubjectstring
messages array
Definitions
io.kestra.plugin.microsoft365.outlook.domain.MessageSummary
bodyPreviewstring
conversationIdstring
fromMailstring
hasAttachmentsboolean
idstring
importancestring
isReadboolean
receivedDateTimestring
Format
date-timesenderMailstring
sentDateTimestring
Format
date-timesubjectstring
uri string
Format
uri