AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'portal' table (ID prefix 'port_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Portal (portal)
Portals allow Valstorm customers to create external experiences. These can range from a client portal, public website, partner portal, or other external-facing application. Portal Ids can be used in PLACE of organization ids to identify the tenant in API calls, allowing for seamless integration with external applications without exposing the main organization id.
Python SDK & PlatformContext Example
# 1. Query portal via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM portal ORDER BY created_date DESC LIMIT 25")
# 2. Create portal record (Generates 'port_...' Base62 ID)
created = await platform.records.create("portal", [
{"name": "Example Portal"}
])| 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 | |
| domain | string | — | The domain of the portal | |
| api_name | string | — | required | An auto-generated name to make the portal unique |
| description | stringrich-text | — | A description for what the portal is used for |
