outlook.searchMessages returns matching message metadata.
Example
automations/search-outlook-mail.automation.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Search Outlook messages with Microsoft Graph syntax.
outlook.searchMessages returns matching message metadata.
import { automation } from "automate.ax"
import { outlook } from "automate.ax/outlook"
export default automation("Find launch mail", () => {
outlook.searchMessages({
folder: "inbox",
query: "subject:launch from:alex@example.com",
limit: 50,
})
})
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | None | Microsoft Graph message search expression. The action escapes quotes before submission. |
folder | string | No | Entire mailbox | Display path, ID, or well-known folder name. |
limit | number | No | 100 | Maximum results across pages, 1–10,000. |
Second argument: { account } | string | IntegrationAccountReference<"microsoft"> | No | Project default | Microsoft binding. |