app:record:history
Retrieves the immutable audit log for a record, ordered oldest first
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 the record belongs to |
id | string | The unique identifier of the record whose history to retrieve |
Outputs
| Name | Type | Description |
|---|---|---|
items | []Record | The list of historical versions of the record, oldest first |
Example
name: Read a record's change history
actions:
- name: history
component: app:record:history
vars:
org_id: "{{ var.org_id }}"
schema: content
table: articles
id: "{{ var.id }}"
outputs:
changes: "{{ history.items }}"