AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'list_filter' table (ID prefix 'lifi_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
List Filter (list_filter)
Used to control list views and filter their data
Python SDK & PlatformContext Example
# 1. Query list_filter via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM list_filter ORDER BY created_date DESC LIMIT 25")
# 2. Create list_filter record (Generates 'lifi_...' Base62 ID)
created = await platform.records.create("list_filter", [
{"name": "Example List Filter"}
])| Field API Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | required | Id |
| name | string | — | required | Name |
| created_date | stringdate-time | — | Created Date | |
| modified_date | stringdate-time | — | Modified Date | |
| created_by | stringlookup | → user (string ID) | requiredsystem | Created By |
| modified_by | stringlookup | → user (string ID) | requiredsystem | Modified By |
| query | stringtext-area | — | The SQL query that controls this list view | |
| object | stringlookup | → schemas (string ID) | Object | |
| settings | jsonjson | — | Settings | |
| table_columns | list | — | The metadata of the columns for a table view | |
| kanban_column | jsonjson | — | The metadata of a kanban views column | |
| kanban_swim_lane | jsonjson | — | The metadata of the kanban swimlane, if any | |
| kanban_card_fields | list | — | The metadata of the fields on each kanban card | |
| list_fields | list | — | The fields that will be present in a list view | |
| default_view | stringenum | — | The default view for this list filter | |
| query_mode | stringenum | — | It dictates exactly how the frontend should render and how the backend should behave. | |
| ui_configuration | jsonjson | — | This will hold the entire state of the visual builder. Keeping this as a single JSON object prevents you from polluting your database schema with dozens of individual columns (like limit, offset, selected_fields) that become completely useless if the user switches to custom_sql | |
| shared_with | listsharing | — | system | Shared With |
| start_date_time | jsonjson | → unnamed (string ID) | Start time for a record in the calendar view | |
| end_date_time | jsonjson | → unnamed (string ID) | End time for a record in the calendar view | |
| calendar_view | stringenum | — | The view type of the calendar | |
| calendar_card_fields | list | → unnamed (string ID) | Selection of fields to show on a calendar record card |
