---
id: object/table/5495
type: object
title: Table 5495 "Sales Order Entity Buffer"
summary: Table 5495 "Sales Order Entity Buffer" in Base Application (Microsoft.Integration.Entity). 62 fields, 4 public procedures. Present since at least BC23, still in BC30, changed in BC24-25.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: fcbe353474cb60daf30c0a282089e096aa202dd8aef3c7c83fbfb7b666689fd4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/Entity/SalesOrderEntityBuffer.Table.al
    title: src/Layers/W1/BaseApp/Integration/Entity/SalesOrderEntityBuffer.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesOrder_create
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesorder_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesorder_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesorder_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesorder
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salesorder_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salesorder_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salesorder_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/resources/dynamics_salesorder
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5495
name: Sales Order Entity Buffer
namespace: Microsoft.Integration.Entity
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 62
  procedures: 11
  events: 0
  subscribers: 0
relations:
  out: 23
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 3
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5495 "Sales Order Entity Buffer"

> Table 5495 "Sales Order Entity Buffer" in Base Application (Microsoft.Integration.Entity). 62 fields, 4 public procedures. Present since at least BC23, still in BC30, changed in BC24-25.

Base Application · Microsoft.Integration.Entity · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/Entity/SalesOrderEntityBuffer.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 30028 "APIV2 - Sales Orders"](../page/30028.md) (5 Learn pages), [Page 20028 "APIV1 - Sales Orders"](../page/20028.md) (4).

## Properties

| Property | Value |
|---|---|
| Caption | Sales Order Entity Buffer |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 2 | Sell-to Customer No. | Code[20] | — | TableRelation [Table 18 "Customer"](../table/18.md); NotBlank |
| 3 | No. | Code[20] | — |  |
| 4 | Bill-to Customer No. | Code[20] | — | TableRelation [Table 18 "Customer"](../table/18.md); NotBlank |
| 5 | Bill-to Name | Text[100] | — | TableRelation Customer.Name |
| 7 | Bill-to Address | Text[100] | — |  |
| 8 | Bill-to Address 2 | Text[50] | — |  |
| 9 | Bill-to City | Text[30] | — | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Bill-to Country/Region Code" = const('')) "Post Code".City else if ("Bill-to Country/Region Code" = filter(<> '')) "Post Code".City where("Country/Region Code" = field("Bill-to Country/Region Code"))) |
| 10 | Bill-to Contact | Text[100] | — |  |
| 12 | Ship-to Code | Code[10] | — |  |
| 13 | Ship-to Name | Text[100] | — |  |
| 15 | Ship-to Address | Text[100] | — |  |
| 16 | Ship-to Address 2 | Text[50] | — |  |
| 17 | Ship-to City | Text[30] | — | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Ship-to Country/Region Code" = const('')) "Post Code".City else if ("Ship-to Country/Region Code" = filter(<> '')) "Post Code".City where("Country/Region Code" = field("Ship-to Country/Region Code"))) |
| 18 | Ship-to Contact | Text[100] | — |  |
| 20 | Posting Date | Date | — |  |
| 23 | Payment Terms Code | Code[10] | — | TableRelation [Table 3 "Payment Terms"](../table/3.md) (Payment Terms) |
| 27 | Shipment Method Code | Code[10] | — | TableRelation [Table 10 "Shipment Method"](../table/10.md) (Shipment Method) |
| 29 | Shortcut Dimension 1 Code | Code[20] | — | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1), Blocked = const(false))) |
| 30 | Shortcut Dimension 2 Code | Code[20] | — | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2), Blocked = const(false))) |
| 31 | Customer Posting Group | Code[20] | — | TableRelation [Table 92 "Customer Posting Group"](../table/92.md) (Customer Posting Group) |
| 32 | Currency Code | Code[10] | — | TableRelation [Table 4 "Currency"](../table/4.md) |
| 35 | Prices Including VAT | Boolean | — |  |
| 43 | Salesperson Code | Code[20] | — | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) ("Salesperson/Purchaser" where(Blocked = const(false))) |
| 56 | Recalculate Invoice Disc. | Boolean | — | FlowField: exist("Sales Line" where("Document Type" = const(Invoice), "Document No." = field("No."), "Recalculate Invoice Disc." = const(true))); not editable |
| 60 | Amount | Decimal | — |  |
| 61 | Amount Including VAT | Decimal | — |  |
| 79 | Sell-to Customer Name | Text[100] | — | TableRelation Customer.Name |
| 81 | Sell-to Address | Text[100] | — |  |
| 82 | Sell-to Address 2 | Text[50] | — |  |
| 83 | Sell-to City | Text[30] | — | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Sell-to Country/Region Code" = const('')) "Post Code".City else if ("Sell-to Country/Region Code" = filter(<> '')) "Post Code".City where("Country/Region Code" = field("Sell-to Country/Region Code"))) |
| 84 | Sell-to Contact | Text[100] | — |  |
| 85 | Bill-to Post Code | Code[20] | — | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 86 | Bill-to County | Text[30] | — |  |
| 87 | Bill-to Country/Region Code | Code[10] | — | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 88 | Sell-to Post Code | Code[20] | — | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Sell-to Country/Region Code" = const('')) "Post Code" else if ("Sell-to Country/Region Code" = filter(<> '')) "Post Code" where("Country/Region Code" = field("Sell-to Country/Region Code"))) |
| 89 | Sell-to County | Text[30] | — |  |
| 90 | Sell-to Country/Region Code | Code[10] | — | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 91 | Ship-to Post Code | Code[20] | — | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Ship-to Country/Region Code" = const('')) "Post Code" else if ("Ship-to Country/Region Code" = filter(<> '')) "Post Code" where("Country/Region Code" = field("Ship-to Country/Region Code"))) |
| 92 | Ship-to County | Text[30] | — |  |
| 93 | Ship-to Country/Region Code | Code[10] | — | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 99 | Document Date | Date | — |  |
| 100 | External Document No. | Code[35] | — |  |
| 171 | Sell-to Phone No. | Text[30] | — |  |
| 172 | Sell-to E-Mail | Text[80] | Email <small>caption</small> |  |
| 210 | Ship-to Phone No. | Text[30] | — |  |
| 1304 | Cust. Ledger Entry No. | Integer | — | TableRelation [Table 21 "Cust. Ledger Entry"](../table/21.md) ("Cust. Ledger Entry"."Entry No.") |
| 1305 | Invoice Discount Amount | Decimal | — |  |
| 5052 | Sell-To Contact No. | Code[20] | — | TableRelation [Table 5050 "Contact"](../table/5050.md) |
| 5750 | Shipping Advice | Option | — | OptionCaption: Partial,Complete |
| 5752 | Completely Shipped | Boolean | — |  |
| 5790 | Requested Delivery Date | Date | — |  |
| 8000 | Id | Guid | — | DataClassification SystemMetadata |
| 9600 | Total Tax Amount | Decimal | Specifies the total tax amount for the sales invoice. <small>via [Page 20028 "APIV1 - Sales Orders"](../page/20028.md)</small> |  |
| 9601 | Status | Enum "Sales Order Entity Buffer Status" | Specifies the status of the Sales Invoice (cancelled, paid, on hold, created). <small>via [Page 20028 "APIV1 - Sales Orders"](../page/20028.md)</small> | enum [Enum 5495 "Sales Order Entity Buffer Status"](../enum/5495.md) |
| 9624 | Discount Applied Before Tax | Boolean | — |  |
| 9630 | Last Modified Date Time | DateTime | — | not editable; DataClassification SystemMetadata |
| 9631 | Customer Id | Guid | — | TableRelation Customer.SystemId; DataClassification SystemMetadata |
| 9633 | Contact Graph Id | Text[250] | — | DataClassification SystemMetadata |
| 9634 | Currency Id | Guid | — | TableRelation Currency.SystemId; DataClassification SystemMetadata |
| 9635 | Payment Terms Id | Guid | — | TableRelation [Table 3 "Payment Terms"](../table/3.md) ("Payment Terms".SystemId); DataClassification SystemMetadata |
| 9636 | Shipment Method Id | Guid | — | TableRelation [Table 10 "Shipment Method"](../table/10.md) ("Shipment Method".SystemId); DataClassification SystemMetadata |
| 9638 | Bill-to Customer Id | Guid | — | TableRelation Customer.SystemId; DataClassification SystemMetadata |

## Keys

- Key1: No.
- Key2: Id (clustered)
- Key3: Cust. Ledger Entry No.

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 4595 "SOA - KPI Track All"](../codeunit/4595.md) DeleteSalesOrderChanged
- OnAfterInsertEvent: [Codeunit 4595 "SOA - KPI Track All"](../codeunit/4595.md) InsertSalesOrderChanged
- OnAfterModifyEvent: [Codeunit 4595 "SOA - KPI Track All"](../codeunit/4595.md) UpdateSalesOrderChanged

## Procedures

- `UpdateCurrencyId()`
- `UpdatePaymentTermsId()`
- `UpdateShipmentMethodId()`
- `UpdateReferencedRecordIds()`

Plus 7 local procedures.

## Triggers

OnInsert, OnModify, OnRename

## Relations

- Shipment Method Code: TableRelation [Table 10 "Shipment Method"](../table/10.md)
- Shipment Method Id: TableRelation [Table 10 "Shipment Method"](../table/10.md)
- Salesperson Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Bill-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Sell-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Cust. Ledger Entry No.: TableRelation [Table 21 "Cust. Ledger Entry"](../table/21.md)
- Bill-to City: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- Bill-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Sell-to City: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- Sell-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- Ship-to City: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- Ship-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- Payment Terms Code: TableRelation [Table 3 "Payment Terms"](../table/3.md)
- Payment Terms Id: TableRelation [Table 3 "Payment Terms"](../table/3.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Recalculate Invoice Disc.: CalcFormula [Table 37 "Sales Line"](../table/37.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Sell-To Contact No.: TableRelation [Table 5050 "Contact"](../table/5050.md)
- Bill-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Sell-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Ship-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Customer Posting Group: TableRelation [Table 92 "Customer Posting Group"](../table/92.md)

## Pages and codeunits on this table

- [Page 20028 "APIV1 - Sales Orders"](../page/20028.md) (source table)
- [Page 30028 "APIV2 - Sales Orders"](../page/30028.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Sales Order Entity Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
