AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'record_trigger' table (ID prefix 'retr_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Record Trigger (record_trigger)
Record triggers are automations that run when someone creates, updates, deletes or any combination that is determined by the trigger code.
Python SDK & PlatformContext Example
# 1. Query record_trigger via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM record_trigger ORDER BY created_date DESC LIMIT 25")
# 2. Create record_trigger record (Generates 'retr_...' Base62 ID)
created = await platform.records.create("record_trigger", [
{"name": "Example Record Trigger"}
])| Field API Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | system | Id |
| name | string | — | Name | |
| created_date | stringdate-time | — | system | Created Date |
| modified_date | stringdate-time | — | system | Modified Date |
| created_by | jsonlookup | → user (string ID) | system | Created By |
| modified_by | jsonlookup | → user (string ID) | system | Modified By |
| object | stringlookup | → schemas (string ID) | Object | |
| order | number | — | Order | |
| file_name | string | — | File Name | |
| context | list | — | Context | |
| code | stringtext-area | — | Code | |
| app | stringlookup | → app (string ID) | App | |
| shared_with | listsharing | — | system | Shared With |
