Read dimension
BetaReads data
Reads one Twinfield customer, supplier, ledger account, cost centre or project.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Twinfield connection the step signs in with. |
| Company code | Leave empty to use the company code on the connection. The List offices node shows which codes this login reaches. |
| Kind | Which master-data book this record lives in. |
| CodeRequired | The record's own Twinfield code — the Find dimensions node resolves one from a name. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `twinfield`) |
office | text |
dimtype | "DEB" or "CRD" or "BAS" or "PNL" or "KPL" or "PRJ", by default "DEB" |
code | text |
Output
| Field | Type |
|---|---|
dimension | object |
code | string |
name | string |
level | number |
inUse | boolean |
status | string |
Sample output, and the expression for each field
- code"1000"
- dimension
- code"1000"
- name"Acme"
- status"active"
- inUsetrue
- level2
- name"Acme"
- status"active"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"code": "<code>",
"connection": "<connection id>",
"dimtype": "DEB",
"office": ""
},
"label": "Read dimension",
"type": "twinfield.readDimension",
"version": 1
}