Database
The Database action performs CRUD (and view) operations against WorkHub24 datastores from an automation.
When to use
Section titled “When to use”- Persist webhook payloads into a table
- Look up a record by ID before branching
- Bulk create/update from an array
- Read a saved view with placeholders
Actions
Section titled “Actions”| Action | Purpose |
|---|---|
GET_BY_ID | Load one record by ID |
CREATE | Insert one record |
CREATE_MANY | Insert many records from a source array |
UPDATE | Update one record |
UPDATE_MANY | Update many records |
DELETE | Delete a record |
GET_VIEW | Read rows from a datastore view (with optional placeholders) |
Configure
Section titled “Configure”- Add a Database node.
- On General, choose the Action.
- Select a Datatable (or a View for
GET_VIEW). - For ID-based actions, set Record ID from a fixed value or variable.
- Use field mapping to map source variables into destination columns (and nested mappings when needed).
- For
GET_VIEW, fill any placeholder inputs the view requires. - On Output, expose returned fields for later nodes.
Tabs: General, Output, Execution.
Example
Section titled “Example”Schedule nightly job → Database GET_VIEW of expired trials → Loop → Send Email for each customer.
Pitfalls
Section titled “Pitfalls”- Table / column permissions must allow the automation’s effective access—see Data Table Permissions.
- Field types must be compatible with mapped variables (file→file, number→number, and so on).
CREATE_MANYneeds a proper source array variable—verify upstream shape in execution logs.
Related: Datastores Management, Loop.