Skip to main content
outlook.onMessageEvent subscribes to Microsoft Graph mailbox notifications.

Example

automations/outlook-on-message-event.automation.ts

Options

Optional folder accepts an exact display path, provider ID, or well-known name. Omit it to watch the mailbox. Optional account selects a Microsoft binding.

Event

Runs for message creation, update, or deletion and returns a change event. Created and updated events include the normalized message. Deleted events include changeType, messageId, and the known folderId without fetching the deleted resource.