nexttransactionlinelink
transactionThe forward line-link table: one row per line-to-line link travelling downstream — a sales-order line to its fulfillment line, a fulfillment line to its invoice line — with the link type and linked amount.
Analytics label is "Related Transaction Line Link - Next". Read from a transaction line: the previous* columns identify the line you are standing on, the next*/Transaction columns the downstream document and line.
What the badges mean
- master
- Data class: what the record holds — master data, transaction documents, control/configuration, or a documented convenience record. NetSuite has no product-family or schema axis, so this is the whole classification.
- Subsidiary-scoped
- The record carries a
subsidiarycolumn that partitions its rows, so the generated SQL anchors it. On a few records the column is a multiselect rather than a scalar foreign key — the table notes say which (see the quirks guide). - Location-scoped
- The record carries a
locationcolumn — an org segment in NetSuite before it is a warehouse — and the generated SQL anchors it the same way. - View
- A documented convenience record rather than a stored one. Land the records it stands in for instead of assuming it extracts as-is — the table notes say where the rows actually live.
Structural facts — how the record is partitioned, not a trap by itself
Join & extract hazards — verify before you rely on this
'T'/'F' string.Fields
8 fields · 4 key
8 fields.
| # | Field | Description | Type | Flags |
|---|---|---|---|---|
| 1 | previousdoc | The document you are standing on (internal id) | NUMBER | Primary-key field |
| 2 | previousline | The line you are standing on (internal id) | NUMBER | Primary-key field |
| 3 | previoustype | Type of the document you are standing on | VARCHAR | |
| 4 | nextdoc | Downstream document (internal id) | NUMBER | Primary-key field |
| 5 | nextline | Downstream line (internal id) | NUMBER | Primary-key field |
| 6 | nexttype | Type of the downstream document | VARCHAR | |
| 7 | linktype | Link type (internal id) | NUMBER | |
| 8 | foreignamount | Linked amount in transaction currency | NUMBER |
Field provenance: hand-curated. 4 key fields.
Boilerplate SQL
Starting point for reading the Connect-landed copy of nexttransactionlinelink on Databricks — dates are real DATE/TIMESTAMP columns and need no conversion, and the partition anchors are already in place. This record carries no modification stamp, and the snippet says so where the watermark would otherwise go. Set your Unity Catalog location, schema, and filter values below; they’re substituted into the SQL and the copy button.
6 parameters not filled: <catalog>, <schema>, <previousdoc>, <previousline>, <nextdoc>, <nextline>
-- ============================================================
-- Table : nexttransactionlinelink — The forward line-link table: one row per line-to-line link travelling downstream — a sales-order line to its fulfillment line, a fulfillment line to its invoice line — with the link type and linked amount.
-- Purpose: Column-selected read of nexttransactionlinelink — auto-generated from field metadata
-- Grain : One row per previousdoc + previousline + nextdoc + nextline
-- Notes : Auto-generated skeleton for NetSuite data landed in your lakehouse from a SuiteAnalytics Connect (or SuiteQL) extract — it never addresses live NetSuite. Identifiers are lowercase as NetSuite2.com renders them. Select-type columns hold numeric internal ids: BUILTIN.DF() display resolution exists only at extraction time, so decode ids by joining the landed list records; see quirks #display-values. Check-box columns arrive as 'T'/'F' strings; see quirks #tf-booleans.
-- ============================================================
SELECT
t.previousdoc AS "The document you are standing on (internal id)",
t.previousline AS "The line you are standing on (internal id)",
t.nextdoc AS "Downstream document (internal id)",
t.nextline AS "Downstream line (internal id)",
t.previoustype AS "Type of the document you are standing on",
t.nexttype AS "Type of the downstream document",
t.linktype AS "Link type (internal id)",
t.foreignamount AS "Linked amount in transaction currency"
FROM <catalog>.<schema>.nexttransactionlinelink t
WHERE
1 = 1 -- no partition column on this record; the filters below are optional
-- AND t.previousdoc = <previousdoc>
-- AND t.previousline = <previousline>
-- AND t.nextdoc = <nextdoc>
-- AND t.nextline = <nextline>
-- no lastmodifieddate on this record — there is no watermark column, so incremental extraction must full-refresh it (see quirks #deletes)
ORDER BY t.previousdoc;Verified August 2026 · Analytics Browser 2021.1 · corroborated 2025.2
Select columns hold internal ids, not display text — see decoding display values.
Relationships
Diagram of 1-hop neighbors — join details below. Document-link edges are highlighted; they chain one document to the next and are the joins newcomers most often get wrong.
Join details
ON nexttransactionlinelink.previousline = transactionline.idON nexttransactionlinelink.nextline = transactionline.idON nexttransactionlinelink.previousdoc = transaction.idON nexttransactionlinelink.nextdoc = transaction.id
More Transactions tables
- paymentmethodThe payment-method list: one row per method a document can carry, with its type and the GL account payments land in.
- previoustransactionlinelinkThe backward line-link table: the exact mirror of nexttransactionlinelink, travelling upstream from an invoice line to the sales-order line it originated on.
- salesinvoicedThe invoiced-sales analytics view: the ordered twin plus a posting period, one row per invoiced transaction line with amount, quantity and the estimated cost and gross-profit columns.
- salesorderedThe ordered-sales analytics view: one row per sales transaction line with the amount, quantity, estimated cost and estimated gross profit already computed, alongside the customer, item, and the class/department/location segments.
- transactionThe document header for every transaction type NetSuite records — sales orders, purchase orders, fulfillments, receipts, invoices, journals — separated by the type column rather than by table.
- transactionaccountinglineThe accounting projection of a transaction line: base-currency amount, debit, credit and net, per accounting book, with the GL account and audit-number stamps.