---
id: object/table/5353
type: object
title: Table 5353 "CRM Salesorder"
summary: Table 5353 "CRM Salesorder" in Base Application (Microsoft.Integration.D365Sales). 105 fields. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 8594324d8de89f6a88461a69e48eabd5fd2150b9deb0dbe1b2e179569e6502e6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMSalesorder.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CRMSalesorder.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5353
name: CRM Salesorder
namespace: Microsoft.Integration.D365Sales
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 105
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 28
  referenced_by: 3
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5353 "CRM Salesorder"

> Table 5353 "CRM Salesorder" in Base Application (Microsoft.Integration.D365Sales). 105 fields. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | CRM Salesorder |
| TableType | CRM |
| 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 |
|---|---|---|---|---|
| 1 | SalesOrderId | Guid | Order <small>caption</small> |  |
| 2 | OpportunityId | Guid | Opportunity <small>caption</small> | TableRelation [Table 5343 "CRM Opportunity"](../table/5343.md) ("CRM Opportunity".OpportunityId) |
| 3 | QuoteId | Guid | Quote <small>caption</small> | TableRelation [Table 5351 "CRM Quote"](../table/5351.md) ("CRM Quote".QuoteId) |
| 4 | PriorityCode | Option | Priority <small>caption</small> | OptionCaption: Default Value |
| 5 | SubmitStatus | Integer | Submitted Status <small>caption</small> |  |
| 6 | OwningUser | Guid | Owning User <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 7 | SubmitDate | Date | Date Submitted <small>caption</small> |  |
| 8 | OwningBusinessUnit | Guid | Owning Business Unit <small>caption</small> | TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md) ("CRM Businessunit".BusinessUnitId) |
| 9 | SubmitStatusDescription | BLOB | Submitted Status Description <small>caption</small> |  |
| 10 | PriceLevelId | Guid | Price List <small>caption</small> | TableRelation [Table 5346 "CRM Pricelevel"](../table/5346.md) ("CRM Pricelevel".PriceLevelId) |
| 11 | LastBackofficeSubmit | Date | Last Submitted to Back Office <small>caption</small> |  |
| 12 | AccountId | Guid | Account <small>caption</small> | TableRelation [Table 5341 "CRM Account"](../table/5341.md) ("CRM Account".AccountId) |
| 13 | ContactId | Guid | Contact <small>caption</small> | TableRelation [Table 5342 "CRM Contact"](../table/5342.md) ("CRM Contact".ContactId) |
| 14 | OrderNumber | Text[100] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 15 | Name | Text[2048] | Specifies the name of the record. |  |
| 16 | PricingErrorCode | Option | Pricing Error <small>caption</small> | OptionCaption: None,Detail Error,Missing Price Level,Inactive Price Level,Missing Quantity,Missing Unit Price,Missing Product,Invalid Product,Missing Pricing Code,Invalid Pricing Code,Missing UOM,Product Not In Price Level,Missing Price Level Amount,Missing Price Level Percentage,Missing Price,Missing Current Cost... |
| 17 | Description | BLOB | — |  |
| 18 | DiscountAmount | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 19 | FreightAmount | Decimal | Freight Amount <small>caption</small> |  |
| 20 | TotalAmount | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 21 | TotalLineItemAmount | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 22 | TotalLineItemDiscountAmount | Decimal | Total Line Item Discount Amount <small>caption</small> |  |
| 23 | TotalAmountLessFreight | Decimal | Specifies data from a corresponding field in a Dynamics 365 Sales entity. |  |
| 24 | TotalDiscountAmount | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 25 | RequestDeliveryBy | Date | Specifies information related to the Dynamics 365 Sales connection. |  |
| 26 | TotalTax | Decimal | Specifies the sum of TAX amounts on all lines in the document. |  |
| 30 | CreatedBy | Guid | Created By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 31 | CreatedOn | DateTime | Created On <small>caption</small> |  |
| 32 | ModifiedBy | Guid | Modified By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 33 | ModifiedOn | DateTime | Modified On <small>caption</small> |  |
| 34 | StateCode | Option | Specifies information related to the Dynamics 365 Sales connection. | OptionCaption: Active,Submitted,Canceled,Fulfilled,Invoiced |
| 35 | StatusCode | Option | Specifies information related to the Dynamics 365 Sales connection. | OptionCaption: ,In Progress,No Money,New,Pending,Complete,Partial,Invoiced |
| 36 | ShipTo_Name | Text[200] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 37 | VersionNumber | BigInteger | Version Number <small>caption</small> |  |
| 38 | ShipTo_Line1 | Text[250] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 39 | ShipTo_Line2 | Text[250] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 40 | ShipTo_Line3 | Text[250] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 41 | ShipTo_City | Text[80] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 42 | ShipTo_StateOrProvince | Text[50] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 43 | ShipTo_Country | Text[80] | Specifies the country/region of the address. |  |
| 44 | ShipTo_PostalCode | Text[20] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 45 | WillCall | Boolean | Specifies information related to the Dynamics 365 Sales connection. |  |
| 46 | ShipTo_Telephone | Text[50] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 47 | BillTo_Name | Text[200] | Specifies the name at the address that the invoice will be sent to. |  |
| 48 | ShipTo_FreightTermsCode | Option | Specifies information related to the Dynamics 365 Sales connection. | OptionCaption: Default Value |
| 49 | ShipTo_Fax | Text[50] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 50 | BillTo_Line1 | Text[250] | Specifies the street of the address that the invoice will be sent to. |  |
| 51 | BillTo_Line2 | Text[250] | Specifies the additional street information of the address that the invoice will be sent to. |  |
| 52 | BillTo_Line3 | Text[250] | Specifies the additional street information of the address that the invoice will be sent to. |  |
| 53 | BillTo_City | Text[80] | Specifies the city of the address that the invoice will be sent to. |  |
| 54 | BillTo_StateOrProvince | Text[50] | Specifies the state/province of the address that the invoice will be sent to. |  |
| 55 | BillTo_Country | Text[80] | Specifies the country/region of the address that the invoice will be sent to. |  |
| 56 | BillTo_PostalCode | Text[20] | Specifies the ZIP/postal code of the address that the invoice will be sent to. |  |
| 57 | BillTo_Telephone | Text[50] | Specifies the phone number at the address that the invoice will be sent to. |  |
| 58 | BillTo_Fax | Text[50] | Specifies the fax number at the address that the invoice will be sent to. |  |
| 59 | DiscountPercentage | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 60 | ContactIdName | Text[160] | Specifies the contact person at the customer. | FlowField: lookup("CRM Contact".FullName where(ContactId = field(ContactId))) |
| 61 | AccountIdName | Text[160] | — | FlowField: lookup("CRM Account".Name where(AccountId = field(AccountId))) |
| 62 | OpportunityIdName | Text[2048] | Specifies the sales opportunity that is coupled to this Dynamics 365 Sales opportunity. | FlowField: lookup("CRM Opportunity".Name where(OpportunityId = field(OpportunityId))) |
| 63 | QuoteIdName | Text[2048] | Specifies information related to the Dynamics 365 Sales connection. | FlowField: lookup("CRM Quote".Name where(QuoteId = field(QuoteId))) |
| 64 | PriceLevelIdName | Text[100] | Specifies a list of your items and their prices, for example, to send to customers. You can create the list for specific customers, campaigns, currencies, or other criteria. | FlowField: lookup("CRM Pricelevel".Name where(PriceLevelId = field(PriceLevelId))) |
| 65 | CreatedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedBy))) |
| 66 | ModifiedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedBy))) |
| 67 | CustomerId | Guid | Customer <small>caption</small> | TableRelation [Table 5341 "CRM Account"](../table/5341.md), [Table 5342 "CRM Contact"](../table/5342.md) (if (CustomerIdType = const(account)) "CRM Account".AccountId else if (CustomerIdType = const(contact)) "CRM Contact".ContactId) |
| 68 | CustomerIdType | Option | Customer Type <small>caption</small> | OptionCaption: ,account,contact |
| 69 | OwnerId | Guid | Owner <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md), [Table 5359 "CRM Team"](../table/5359.md) (if (OwnerIdType = const(systemuser)) "CRM Systemuser".SystemUserId else if (OwnerIdType = const(team)) "CRM Team".TeamId) |
| 70 | OwnerIdType | Option | — | OptionCaption: ,systemuser,team |
| 71 | BillTo_ContactName | Text[150] | Specifies the contact person at the address that the invoice will be sent to. |  |
| 72 | BillTo_AddressId | Guid | Bill To Address ID <small>caption</small> |  |
| 73 | ShipTo_AddressId | Guid | Ship To Address ID <small>caption</small> |  |
| 74 | IsPriceLocked | Boolean | Specifies information related to the Dynamics 365 Sales connection. |  |
| 75 | DateFulfilled | Date | Specifies when the sales order was delivered. |  |
| 76 | ShipTo_ContactName | Text[150] | Ship To Contact Name <small>caption</small> |  |
| 77 | UTCConversionTimeZoneCode | Integer | UTC Conversion Time Zone Code <small>caption</small> |  |
| 78 | TransactionCurrencyId | Guid | Currency <small>caption</small> | TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md) ("CRM Transactioncurrency".TransactionCurrencyId) |
| 79 | TimeZoneRuleVersionNumber | Integer | Time Zone Rule Version Number <small>caption</small> |  |
| 80 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> |  |
| 81 | ExchangeRate | Decimal | Exchange Rate <small>caption</small> |  |
| 82 | OverriddenCreatedOn | Date | Record Created On <small>caption</small> |  |
| 83 | TotalLineItemAmount_Base | Decimal | Total Detail Amount (Base) <small>caption</small> |  |
| 84 | TotalDiscountAmount_Base | Decimal | Total Discount Amount (Base) <small>caption</small> |  |
| 85 | TotalAmountLessFreight_Base | Decimal | Total Pre-Freight Amount (Base) <small>caption</small> |  |
| 86 | TotalAmount_Base | Decimal | Total Amount (Base) <small>caption</small> |  |
| 87 | TransactionCurrencyIdName | Text[100] | Specifies the currency that amounts are shown in. | FlowField: lookup("CRM Transactioncurrency".CurrencyName where(TransactionCurrencyId = field(TransactionCurrencyId))) |
| 88 | DiscountAmount_Base | Decimal | Order Discount Amount (Base) <small>caption</small> |  |
| 89 | FreightAmount_Base | Decimal | Freight Amount (Base) <small>caption</small> |  |
| 90 | TotalLineItemDiscountAmount_Ba | Decimal | Total Line Item Discount Amount (Base) <small>caption</small> |  |
| 91 | TotalTax_Base | Decimal | Total Tax (Base) <small>caption</small> |  |
| 92 | CreatedOnBehalfBy | Guid | Created By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 93 | CreatedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedOnBehalfBy))) |
| 94 | ModifiedOnBehalfBy | Guid | Modified By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 95 | ModifiedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedOnBehalfBy))) |
| 96 | OwningTeam | Guid | Owning Team <small>caption</small> | TableRelation [Table 5359 "CRM Team"](../table/5359.md) ("CRM Team".TeamId) |
| 97 | BillTo_Composite | BLOB | Specifies the address that the invoice will be sent to. |  |
| 98 | ShipTo_Composite | BLOB | Specifies information related to the Dynamics 365 Sales connection. |  |
| 99 | ProcessId | Guid | Process <small>caption</small> |  |
| 100 | StageId | Guid | Process Stage <small>caption</small> |  |
| 101 | EntityImageId | Guid | Entity Image Id <small>caption</small> |  |
| 102 | TraversedPath | Text[250] | Traversed Path <small>caption</small> |  |
| 103 | CompanyId | Guid | Company Id <small>caption</small> | TableRelation [Table 5393 "CDS Company"](../table/5393.md) ("CDS Company".CompanyId) |
| 104 | PaymentTermsCodeEnum | Enum "CDS Payment Terms Code" | Specifies the payment terms that you select from on customer cards to define when the customer must pay, such as within 14 days. | enum [Enum 5334 "CDS Payment Terms Code"](../enum/5334.md) |
| 105 | ShippingMethodCodeEnum | Enum "CDS Shipping Agent Code" | Specifies information related to the Dynamics 365 Sales connection. | enum [Enum 5336 "CDS Shipping Agent Code"](../enum/5336.md) |
| 106 | FreightTermsCodeEnum | Enum "CDS Shipment Method Code" | Specifies the shipment method. | enum [Enum 5335 "CDS Shipment Method Code"](../enum/5335.md) |
| 107 | BusinessCentralOrderNumber | Text[20] | Business Central Order Number <small>caption</small> |  |
| 108 | BusinessCentralDocumentOccurrenceNumber | Integer | Business Central Document Occurrence Number <small>caption</small> |  |

## Keys

- Key1: SalesOrderId (clustered)
- Key2: Name

## Relations

- CreatedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- OwnerId: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) (conditional)
- OwningUser: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- AccountIdName: CalcFormula [Table 5341 "CRM Account"](../table/5341.md)
- AccountId: TableRelation [Table 5341 "CRM Account"](../table/5341.md)
- CustomerId: TableRelation [Table 5341 "CRM Account"](../table/5341.md) (conditional)
- ContactIdName: CalcFormula [Table 5342 "CRM Contact"](../table/5342.md)
- ContactId: TableRelation [Table 5342 "CRM Contact"](../table/5342.md)
- CustomerId: TableRelation [Table 5342 "CRM Contact"](../table/5342.md) (conditional)
- OpportunityIdName: CalcFormula [Table 5343 "CRM Opportunity"](../table/5343.md)
- OpportunityId: TableRelation [Table 5343 "CRM Opportunity"](../table/5343.md)
- TransactionCurrencyIdName: CalcFormula [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- TransactionCurrencyId: TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- PriceLevelIdName: CalcFormula [Table 5346 "CRM Pricelevel"](../table/5346.md)
- PriceLevelId: TableRelation [Table 5346 "CRM Pricelevel"](../table/5346.md)
- QuoteIdName: CalcFormula [Table 5351 "CRM Quote"](../table/5351.md)
- QuoteId: TableRelation [Table 5351 "CRM Quote"](../table/5351.md)
- OwnerId: TableRelation [Table 5359 "CRM Team"](../table/5359.md) (conditional)
- OwningTeam: TableRelation [Table 5359 "CRM Team"](../table/5359.md)
- OwningBusinessUnit: TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md)
- CompanyId: TableRelation [Table 5393 "CDS Company"](../table/5393.md)

## Referenced by

3 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 5355 "CRM Invoice"](../table/5355.md): SalesOrderIdName, SalesOrderId
- [Table 5354 "CRM Salesorderdetail"](../table/5354.md): SalesOrderId

## Pages and codeunits on this table

- [Page 5353 "CRM Sales Order List"](../page/5353.md) (source table)
- [Page 5380 "CRM Sales Order"](../page/5380.md) (source table)
- [Codeunit 5343 "CRM Sales Order to Sales Order"](../codeunit/5343.md) (codeunit runs on it)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26, BC28

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: "CRM Salesorder")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
