app:record
Retrieves a single record by ID from the given schema table
Options
| Name | Type | Description |
|---|---|---|
org_id | string | The organization ID that scopes the operation |
schema | string | The name of the schema (database) that contains the table |
table | string | The name of the table to retrieve the record from |
id | string | The unique identifier of the record to retrieve |
Outputs
| Name | Type | Description |
|---|---|---|
record | Record | The retrieved record data |
Example
name: Read one record
actions:
- name: article
component: app:record
vars:
org_id: "{{ var.org_id }}"
schema: content
table: articles
id: "{{ var.id }}"
outputs:
article: "{{ article.record }}"