> ## 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 into view

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

`onAirtableRecordMovedIntoView` watches view membership. It matches records newly created in the view and existing records that begin satisfying the view's filters.

```ts automations/notify-approved-airtable-records.automation.ts theme={null}
import { automation, sendEmail } from "automate.ax"
import { onAirtableRecordMovedIntoView } from "automate.ax/airtable"

export default automation("Notify approved Airtable records", () => {
  const event = onAirtableRecordMovedIntoView({
    baseId: "app123",
    viewId: "viwApproved",
  })

  sendEmail({ subject: "Record approved", 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 `createdAt` and `occurredAt`, current `fields` keyed by field ID, `source`, optional `sourceMetadata`, `transactionNumber`, and the complete provider transaction under `event`.

`createdAt` is the record's original creation time, not the time it entered the view. Use `occurredAt` for the membership change.
