AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'scheduled_item' table (ID prefix 'scit_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Scheduled Item (scheduled_item)
A record of when to run, what automation, the data to input and the status of the overall execution
Python SDK & PlatformContext Example
# 1. Query scheduled_item via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM scheduled_item ORDER BY created_date DESC LIMIT 25")
# 2. Create scheduled_item record (Generates 'scit_...' Base62 ID)
created = await platform.records.create("scheduled_item", [
{"name": "Example Scheduled Item"}
])| 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) | Created By | |
| modified_by | stringlookup | → user (string ID) | Modified By | |
| run_date_time | stringdate-time | — | When this should run next. | |
| status | stringenum | — | The status of this item | |
| data | jsonjson | — | The input data to this process | |
| task_id | string | — | The id of the task that will run this and any other items in a batch | |
| function | stringlookup | → function (string ID) | Which function this scheduled item will run | |
| process | stringtext-area | — | A useful field to specify which process this is for. This helps for quickly filtering, and should align with the automation you plan to use to run this | |
| system_function | string | — | The name of the system function to use to process this scheduled item | |
| automation | stringlookup | → automation (string ID) | Which automation this scheduled item will run | |
| shared_with | listsharing | — | system | Shared With |
