---
id: object/table/5354
type: object
title: Table 5354 "CRM Salesorderdetail"
summary: Table 5354 "CRM Salesorderdetail" in Base Application (Microsoft.Integration.D365Sales). 76 fields. Present since at least BC23, still in BC30, changed in BC24, 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: a45655c2633422e0fe0d517b027cd0cf7c3816dd6244727abde863147544a974
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMSalesorderdetail.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CRMSalesorderdetail.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: 5354
name: CRM Salesorderdetail
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"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 76
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 19
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5354 "CRM Salesorderdetail"

> Table 5354 "CRM Salesorderdetail" in Base Application (Microsoft.Integration.D365Sales). 76 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | CRM Salesorderdetail |
| 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 | SalesOrderDetailId | Guid | Order Product <small>caption</small> |  |
| 2 | SalesOrderId | Guid | Order <small>caption</small> | TableRelation [Table 5353 "CRM Salesorder"](../table/5353.md) ("CRM Salesorder".SalesOrderId) |
| 3 | SalesRepId | Guid | Salesperson <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 4 | IsProductOverridden | Boolean | Select Product <small>caption</small> |  |
| 5 | IsCopied | Boolean | Copied <small>caption</small> |  |
| 6 | QuantityShipped | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 7 | LineItemNumber | Integer | Line Item Number <small>caption</small> |  |
| 8 | QuantityBackordered | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 9 | UoMId | Guid | Unit <small>caption</small> | TableRelation [Table 5361 "CRM Uom"](../table/5361.md) ("CRM Uom".UoMId) |
| 10 | QuantityCancelled | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 11 | ProductId | Guid | Existing Product <small>caption</small> | TableRelation [Table 5348 "CRM Product"](../table/5348.md) ("CRM Product".ProductId) |
| 12 | RequestDeliveryBy | Date | Requested Delivery Date <small>caption</small> |  |
| 13 | Quantity | Decimal | Specifies the quantity of the item on the sales line. |  |
| 14 | 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... |
| 15 | ManualDiscountAmount | Decimal | Specifies that the sales order is subject to manual discount. |  |
| 16 | ProductDescription | Text[250] | Specifies if the item is a write-in product. |  |
| 17 | VolumeDiscountAmount | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 18 | PricePerUnit | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 19 | BaseAmount | Decimal | Specifies the net amount of all the lines. |  |
| 20 | ExtendedAmount | Decimal | Specifies the sales amount without rounding. |  |
| 21 | Description | BLOB | — |  |
| 22 | IsPriceOverridden | Boolean | Pricing <small>caption</small> |  |
| 23 | ShipTo_Name | Text[200] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 24 | Tax | Decimal | Specifies information related to the Dynamics 365 Sales connection. |  |
| 25 | CreatedOn | DateTime | Specifies when the sales order was created. |  |
| 26 | ShipTo_Line1 | Text[250] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 27 | CreatedBy | Guid | Created By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 28 | ModifiedBy | Guid | Modified By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 29 | ShipTo_Line2 | Text[250] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 30 | ShipTo_Line3 | Text[250] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 31 | ModifiedOn | DateTime | Specifies when the sales order was last modified. |  |
| 32 | ShipTo_City | Text[80] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 33 | ShipTo_StateOrProvince | Text[50] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 34 | ShipTo_Country | Text[80] | Specifies the country/region of the address. |  |
| 35 | ShipTo_PostalCode | Text[20] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 36 | WillCall | Boolean | Specifies information related to the Dynamics 365 Sales connection. |  |
| 37 | ShipTo_Telephone | Text[50] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 38 | ShipTo_Fax | Text[50] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 39 | ShipTo_FreightTermsCode | Option | Specifies the shipment method. | OptionCaption: ,FOB,No Charge |
| 40 | ProductIdName | Text[100] | Specifies information related to the Dynamics 365 Sales connection. | FlowField: lookup("CRM Product".Name where(ProductId = field(ProductId))) |
| 41 | UoMIdName | Text[100] | Specifies the unit in which the item is held in inventory. | FlowField: lookup("CRM Uom".Name where(UoMId = field(UoMId))) |
| 42 | SalesRepIdName | Text[200] | Specifies information related to the Dynamics 365 Sales connection. | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(SalesRepId))) |
| 43 | SalesOrderStateCode | Option | Order Status <small>caption</small> | OptionCaption:  |
| 44 | CreatedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedBy))) |
| 45 | ModifiedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedBy))) |
| 46 | ShipTo_ContactName | Text[150] | Specifies information related to the Dynamics 365 Sales connection. |  |
| 47 | VersionNumber | BigInteger | Version Number <small>caption</small> |  |
| 48 | OwningBusinessUnit | Guid | Owning Business Unit <small>caption</small> |  |
| 49 | OwningUser | Guid | Owning User <small>caption</small> |  |
| 50 | SalesOrderIsPriceLocked | Boolean | Order Is Price Locked <small>caption</small> |  |
| 51 | ShipTo_AddressId | Guid | Ship To Address ID <small>caption</small> |  |
| 52 | TimeZoneRuleVersionNumber | Integer | Time Zone Rule Version Number <small>caption</small> |  |
| 53 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> |  |
| 54 | UTCConversionTimeZoneCode | Integer | UTC Conversion Time Zone Code <small>caption</small> |  |
| 55 | ExchangeRate | Decimal | Specifies the currency exchange rate. |  |
| 56 | OverriddenCreatedOn | Date | Record Created On <small>caption</small> |  |
| 57 | TransactionCurrencyId | Guid | Currency <small>caption</small> | TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md) ("CRM Transactioncurrency".TransactionCurrencyId) |
| 58 | BaseAmount_Base | Decimal | Amount (Base) <small>caption</small> |  |
| 59 | PricePerUnit_Base | Decimal | Price Per Unit (Base) <small>caption</small> |  |
| 60 | TransactionCurrencyIdName | Text[100] | Specifies the currency that amounts are shown in. | FlowField: lookup("CRM Transactioncurrency".CurrencyName where(TransactionCurrencyId = field(TransactionCurrencyId))) |
| 61 | VolumeDiscountAmount_Base | Decimal | Volume Discount (Base) <small>caption</small> |  |
| 62 | ExtendedAmount_Base | Decimal | Extended Amount (Base) <small>caption</small> |  |
| 63 | Tax_Base | Decimal | Tax (Base) <small>caption</small> |  |
| 64 | ManualDiscountAmount_Base | Decimal | Manual Discount (Base) <small>caption</small> |  |
| 65 | 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) |
| 66 | OwnerIdType | Option | — | OptionCaption: ,systemuser,team |
| 67 | CreatedOnBehalfBy | Guid | Created By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 68 | CreatedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedOnBehalfBy))) |
| 69 | ModifiedOnBehalfBy | Guid | Modified By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 70 | ModifiedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedOnBehalfBy))) |
| 71 | SequenceNumber | Integer | Sequence Number <small>caption</small> |  |
| 72 | ParentBundleId | Guid | Parent Bundle <small>caption</small> |  |
| 73 | ProductTypeCode | Option | Product type <small>caption</small> | OptionCaption: Product,Bundle,Required Bundle Product,Optional Bundle Product |
| 74 | PropertyConfigurationStatus | Option | Property Configuration <small>caption</small> | OptionCaption: Edit,Rectify,NotConfigured |
| 75 | ProductAssociationId | Guid | Bundle Item Association <small>caption</small> |  |
| 76 | BusinessCentralLineNumber | Integer | BC Line Number <small>caption</small> |  |

## Keys

- Key1: SalesOrderDetailId (clustered)

## 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)
- SalesRepIdName: 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)
- SalesRepId: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- TransactionCurrencyIdName: CalcFormula [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- TransactionCurrencyId: TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- ProductIdName: CalcFormula [Table 5348 "CRM Product"](../table/5348.md)
- ProductId: TableRelation [Table 5348 "CRM Product"](../table/5348.md)
- SalesOrderId: TableRelation [Table 5353 "CRM Salesorder"](../table/5353.md)
- OwnerId: TableRelation [Table 5359 "CRM Team"](../table/5359.md) (conditional)
- UoMIdName: CalcFormula [Table 5361 "CRM Uom"](../table/5361.md)
- UoMId: TableRelation [Table 5361 "CRM Uom"](../table/5361.md)

## Pages and codeunits on this table

- [Page 5381 "CRM Sales Order Subform"](../page/5381.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, 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 Salesorderdetail")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
