Table
SalesOrderTotals
Sales order totals
Stores the total amounts for a sales order, one record per sales order. It covers line total, charges, discounts, tax and the overall total. It also records when the totals were last updated.
- Table name
SalesOrderTotals- Module
Sales and marketing- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
None- Replacement key
SalesIdIdx- Key fields
SalesId- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesIdSales order that these totals belong to. | String (20)SalesId | No | SalesTable.SalesId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LastUpdatedDateTimeDate and time when the totals were last updated. | UtcDateTimeSalesTotalsLastUpdatedDateTime | No | None | |
LineTotalAmountTotal of the order lines. | RealMCRTotalAmount | No | None | |
OrderHeaderTaxAmountSales tax amount held on the order header. | RealTaxAmount | No | SalesOrderHeaderV4EntitySalesOrderHeaderV3EntitySalesOrderHeaderV2Entityand 4 more | |
OrderTotalAmountOverall total amount of the order. | RealMCRTotalAmount | No | SalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more | |
OrderTotalChargesAmountTotal of the charges on the order. | RealMCRTotalMarkupAmount | No | SalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more | |
OrderTotalDiscountAmountDiscount held at the level of the whole sales order. | RealSalesDiscountAmount | No | SalesOrderHeaderV4EntitySalesOrderHeaderV3EntitySalesOrderHeaderV2Entityand 5 more | |
OrderTotalTaxAmountTotal tax amount for the order. | RealMCRTotalTaxAmount | No | SalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TotalDiscountAmountTotal discount amount for the order. | RealSalesDiscountAmount | No | SalesOrderHeaderV4EntitySalesOrderHeaderV3EntityReturnOrderHeaderV2Entityand 7 more |
Indexes (1)
SalesIdIdxReplacement keyUnique, alternate key.
Relations (1)
Each relation joins SalesOrderTotals to another table on the fields shown.
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdZero or one SalesOrderTotals record → exactly one SalesTable record
Get this data out
Tables are not exposed directly. These public entities read from SalesOrderTotals; use one of them in Power BI, Power Platform or a data management project.
SalesOrderHeaderV4Entity· 6 fields from this tableSalesOrderHeaderV3Entity· 6 fields from this tableReturnOrderHeaderV2Entity· 4 fields from this tableSalesOrderHeaderV2Entity· 6 fields from this tableReturnOrderHeaderCDSEntity· 4 fields from this tableSalesOrderHeaderCDSEntity· 6 fields from this tableSalesOrderHeaderD365SalesEntity· 6 fields from this tableSalesOrderHeaderEntity· 5 fields from this tableSalesOrderHeaderV2ExistAddrReadOnlyEntity· 6 fields from this tableSalesOrderHeaderV3ExistAddrReadOnlyEntity· 6 fields from this table
Need help with SalesOrderTotals in a report, an integration or a migration? Talk to Dr Dynamics.