app:record

Retrieves a single record by ID from the given schema table

Options

NameTypeDescription
org_idstringThe organization ID that scopes the operation
schemastringThe name of the schema (database) that contains the table
tablestringThe name of the table to retrieve the record from
idstringThe unique identifier of the record to retrieve

Outputs

NameTypeDescription
recordRecordThe 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 }}"