AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'tag' table (ID prefix 'tag_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Tag (tag)
Used for value assignments. Useful for filtering or specifying which values can be used in drop downs AKA picklists.
Python SDK & PlatformContext Example
# 1. Query tag via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM tag ORDER BY created_date DESC LIMIT 25")
# 2. Create tag record (Generates 'tag_...' Base62 ID)
created = await platform.records.create("tag", [
{"name": "Example Tag"}
])| 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) | system | Created By |
| modified_by | stringlookup | → user (string ID) | system | Modified By |
| object | stringlookup | → schemas (string ID) | Object | |
| field_api_name | string | — | Field Api Name | |
| value | string | — | Value | |
| label | string | — | Label | |
| global | boolean | — | Turns this into a reusable tag across restricted fields | |
| global_list_name | string | — | The name of the global list if you specify this as reusable | |
| color | stringcolor | — | Controls the background color of the tag | |
| order | number | — | Setting the order will allow tags to sort based on the order | |
| dependent_field_api_name | string | — | Set this if this tag should only be available based on the value of another field | |
| dependent_values | list | — | This tag will only be available to select if one of the values in this list are present | |
| active | boolean | — | Whether the tag will be selectable or not | |
| shared_with | listsharing | — | system | Shared With |
