> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On record moved out of view

> Start an automation when a record stops being visible in an Airtable view.

`onAirtableRecordMovedOutOfView` matches records that stop satisfying a view's filters or are deleted while visible in the view.

```ts automations/report-airtable-view-exits.automation.ts theme={null}
import { automation, sendEmail } from "automate.ax"
import { onAirtableRecordMovedOutOfView } from "automate.ax/airtable"

export default automation("Report Airtable view exits", () => {
  const event = onAirtableRecordMovedOutOfView({
    baseId: "app123",
    viewId: "viwApproved",
  })

  sendEmail({ subject: "Record left approved view", text: event.recordId })
})
```

## Options

| Option    | Type                                                | Required | Description                                                                          |
| --------- | --------------------------------------------------- | -------- | ------------------------------------------------------------------------------------ |
| `baseId`  | `string`                                            | Yes      | Stable Airtable base ID.                                                             |
| `viewId`  | `string`                                            | Yes      | Stable Airtable view ID. Form and list views are not supported by Airtable webhooks. |
| `account` | `string \| IntegrationAccountReference<"airtable">` | No       | Static Airtable account binding; defaults to the project binding.                    |

## Trigger data

Returns `baseId`, `tableId`, `viewId`, `recordId`, ISO `occurredAt`, `source`, optional `sourceMetadata`, `transactionNumber`, and the complete Airtable transaction under `event`.

Airtable reports the record identity but not its field values when it leaves a view. The event can mean either a filter-driven exit or deletion; use a table deletion trigger as well when that distinction matters.
