Suite Utils
Back to blog
NetSuite TipsSep 28, 2026 • 6 min read

Display Related Transactions on NetSuite Sales Orders

Every transaction that originates from another carries the Created From field (createdfrom) pointing to the source record's internal ID.

Suite UtilsHow we write these guides
Display Related Transactions on NetSuite Sales Orders
On this page

You open a Sales Order and need to see every Purchase Order, Item Receipt, and Vendor Bill tied to it, without leaving the record. The same goes for the Invoice: one click to the Vendor Bills that funded the fulfillment. NetSuite doesn't surface this chain by default, and the "Created From" field alone won't give you the full picture. The fix is a set of transaction saved searches pinned as custom sublists on your forms. No SuiteScript required.

The Linking Strategy: Follow createdfrom

Every transaction that originates from another carries the Created From field (createdfrom) pointing to the source record's internal ID. In saved searches (N/search), createdfrom is a direct field on the transaction record, searchable, filterable, and joinable. The standard PO lifecycle is a direct link from the PO to each downstream transaction, not a chain. Both Item Receipts and Vendor Bills are created directly from the PO:

Target Recordcreatedfrom Points To
Purchase OrderSales Order
Item ReceiptPurchase Order
Vendor BillPurchase Order
InvoiceSales Order

For saved searches, the direct field works as expected.

To reach Vendor Bills from an Invoice, you hop: Invoice → Sales Order (via createdfrom) → Purchase Orders (where createdfrom = that SO) → Vendor Bills (where createdfrom = those POs). Saved searches handle each hop with a join or formula filter.

Build the Saved Searches

Create four transaction saved searches. Save each as Public so they appear in the sublist picker.

1. Purchase Orders Linked to This Sales Order

Criteria:

  • Type: Purchase Order
  • Created From: Internal ID equals (leave blank, the sublist context supplies the current record's ID)
  • Main Line: True

Results Columns:

  • Document Number (tranid), link to PO
  • Date (trandate)
  • Vendor
  • Status (status)
  • Amount (amount)

Available Filters: Add Created From as a filter set to "Ask at Runtime", this lets the sublist pass the Sales Order's internal ID automatically.

2. Item Receipts from Those Purchase Orders

Criteria:

  • Type: Item Receipt
  • Created From: Internal ID equals (runtime)
  • Main Line: True

Results Columns:

  • Document Number (tranid)
  • Date (trandate)
  • Vendor
  • Purchase Order (createdfrom, displays as link)
  • Status (status)

3. Vendor Bills from Those Purchase Orders

Criteria:

  • Type: Vendor Bill
  • Created From: Internal ID equals (runtime)
  • Main Line: True

Results Columns:

  • Document Number (tranid)
  • Date (trandate)
  • Vendor
  • Purchase Order (createdfrom)
  • Amount (amount)
  • Status (status)

4. Vendor Bills Linked to This Invoice (via Sales Order → PO)

This one needs a Formula (Numeric) filter to walk the two-hop chain. The sublist runs on the Invoice form, so the runtime value passed is the Invoice's internal ID. But we need to match Vendor Bills whose PO's createdfrom (the SO) equals the Invoice's createdfrom (also the SO).

Criteria:

  • Type: Vendor Bill
  • Main Line: True
  • Formula (Numeric):
CASE WHEN {createdfrom.createdfrom.internalid} = {createdfrom.internalid} THEN 1 ELSE 0 END

Equals 1

Wait, that formula is wrong. It compares the PO's SO to the PO itself. The real fix: the sublist passes the Invoice ID, but we need the Invoice's createdfrom (the SO). Since the available filter mechanism passes the form record's ID, not its createdfrom, you have two options:

Option A, Formula with subquery (cleaner):

CASE WHEN {createdfrom.createdfrom.internalid} = 
  (SELECT createdfrom FROM transaction WHERE id = {internalid}) 
THEN 1 ELSE 0 END

This subquery fetches the Invoice's createdfrom (the SO) at runtime. {internalid} in the subquery resolves to the Invoice ID passed by the sublist.

Option B, Add a custom field on Vendor Bill (if you control the data model): populate a custbody_invoice_link via workflow when the VB is created from a PO tied to an SO that has an Invoice. Then use that as the available filter.

Results Columns:

  • Document Number (tranid)
  • Date (trandate)
  • Vendor
  • Purchase Order (createdfrom)
  • Amount (amount)
  • Status (status)

Test the formula in a standalone search first. Run it with a known Invoice internal ID hardcoded in the filter (Created From Internal ID = 12345) to verify the join logic before pinning it as a sublist.

Pin Searches as Custom Sublists

  1. Navigate to Customization > Forms > Transaction Forms.
  2. Edit the Sales Order form (or your custom SO form).
  3. Click the Sublists tab → New Sublist.
  4. Label: Related POs | Type: List | Source: Saved Search → select Search #1.
  5. Repeat for Related Item Receipts (Search #2) and Related Vendor Bills (Search #3).
  6. Save the form.

For the Invoice form:

  1. Edit the Invoice form at Customization > Forms > Transaction Forms.
  2. Add a sublist: Label: Related Vendor Bills | Source: Search #4.
  3. Save.

The sublists now appear on every Sales Order and Invoice. Clicking a document number opens the related record in a new tab.

Edge Cases That Will Bite You

  • Multiple POs per SO: The searches return all POs where createdfrom = the SO. That's correct, one SO can spawn many POs across vendors.
  • Partial receipts/bills: An Item Receipt or Vendor Bill may cover only some PO lines. The sublist shows the header record; users drill in to see line-level detail.
  • Intercompany / Drop-ship: If you enable those later, createdfrom still works, but the chain adds transfer orders or purchase orders on the vendor side. The same search pattern scales.
  • Deleted source records: If a PO is deleted, its createdfrom reference on child records remains but the link goes nowhere. The sublist row still appears, clicking it leads to a missing record. Acceptable for audit trail purposes.
  • Performance on high-volume accounts: Each sublist runs its search on record load. If a Sales Order routinely has 50+ POs, consider a Summary search type with Group By on createdfrom to reduce row count, or limit results with a Date Within Last 12 Months filter.

What to Verify Next

Deploy the searches to a sandbox form first. Open a Sales Order with known POs, Item Receipts, and Vendor Bills, confirm every row links correctly. Then do the same for an Invoice. If the Vendor Bill sublist on the Invoice returns nothing, trace the createdfrom chain in a standalone search: run Search #4 with the Invoice's internal ID hardcoded and inspect the createdfrom.createdfrom.internalid values against the Invoice's createdfrom. That's where the join breaks 90% of the time. Once it's clean, push the form customizations to production and add the sublists to your users' preferred forms.

Put these ideas to work.

Suite Utils builds small NetSuite utilities that fix the specific thing breaking your day. Each one runs as a native SuiteScript SuiteApp inside your account. No sales call, no onboarding.

Browse the utilities

Enjoyed this one?

Get NetSuite tips like this in your inbox. No spam. Practical guides only.

Keep reading