Link Records
nocodb.link_records
ActionDatabases & warehousesconnection required
Calls the NocoDB API with the connection's credentials.
Attach records to a Links column on one record of this table.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- NocoDB
- Secret shape
- the API token, or {"api_token": "…"}
- Config it needs
- base_url, base_id, table_id, workspace_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
table_id Id of the table to act on, from Table context menu → Copy table ID. Overrides the default table id on the connection. | string | No | — | — | mftbsyu6dxo4y8i |
link_field_id Id of the Links column on this table, from its field menu in NocoDB. | string | Yes | — | — | cl9k1h2fj2m0p3q |
record_id Primary-key value of the record, e.g. 1. Composite keys are joined with '___'. | string | Yes | — | — | 1 |
records The records to attach or detach, named by primary key, e.g. [{"Id": 4}, {"Id": 5}]. Only the key is read; no other field is written. | array | Yes | — | array of object | [{"Id":4}] |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"link_field_id": "cl9k1h2fj2m0p3q",
"record_id": "1",
"records": [
{
"Id": 4
}
],
"table_id": "mftbsyu6dxo4y8i"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
linked True when NocoDB confirmed the link with true. | boolean | — |
requested How many records the request asked to link. | number | — |
response NocoDB's raw answer, for anything other than true. | any | — |
record_id The record the links were added to. | string | — |
link_field_id The Links column that was written. | string | — |
table_id The table the record belongs to. | string | — |
{
"link_field_id": "",
"linked": false,
"record_id": "",
"requested": 0,
"response": null,
"table_id": ""
}See Link Records run in a workflow.
In a technical demo we add the NocoDB connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.