FlowmageDocs

Read sales invoice

BetaReads data

Reads one Twinfield sales invoice with its lines and totals.

Settings

SettingWhat it is
ConnectionRequiredThe Twinfield connection the step signs in with.
Company codeLeave empty to use the company code on the connection.
Invoice typeRequiredThe Twinfield sales-invoice type the invoice was made in.
Invoice numberRequiredThe number Twinfield assigned when the invoice was made.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `twinfield`)
officetext
invoiceTypetext
invoiceNumbertext

Output

FieldType
invoiceobject
invoiceNumberstring
valueExclTotal excl. VATstring
valueIncTotal incl. VATstring
Sample output, and the expression for each field
  • invoice
    • header
      • [0]
        • invoicenumber
          • [0]"1001"
    • result"1"
  • invoiceNumber"1001"
  • valueExcl"100.00"
  • valueInc"121.00"

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>",
    "invoiceNumber": "<invoice number>",
    "invoiceType": "<invoice type>",
    "office": ""
  },
  "label": "Read sales invoice",
  "type": "twinfield.readSalesInvoice",
  "version": 1
}