outlook.onMessageCreated subscribes to Microsoft Graph mailbox notifications.
Example
automations/outlook-on-message-created.automation.ts
Options
Optionalfolder 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 when a message is created and returns the message change event. Created and updated events include the normalized message. Deleted events includechangeType, messageId, and the known folderId without fetching the deleted resource.