Read transaction
BetaReads data
Reads one posted Twinfield transaction with all of its lines.
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. |
| Day bookRequired | The Twinfield transaction type the entry was posted in — VRK, INK, MEMO. |
| Transaction numberRequired | The number Twinfield assigned when the entry was posted. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `twinfield`) |
office | text |
transactionCode | text |
transactionNumber | text |
Output
| Field | Type |
|---|---|
transaction | object |
transactionNumber | string |
resultTwinfield's own result marker | string |
Sample output, and the expression for each field
- result"1"
- transaction
- header
- [0]
- number
- [0]"202100095"
- number
- [0]
- result"1"
- header
- transactionNumber"202100095"
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": {
"connection": "<connection id>",
"office": "",
"transactionCode": "<day book>",
"transactionNumber": "<transaction number>"
},
"label": "Read transaction",
"type": "twinfield.readTransaction",
"version": 1
}