Data entity
SalesOrderHeaderCDSEntity
Dataverse-oriented view of sales order headers, keyed by sales order number. It covers customer, currency, site and warehouse, delivery address, dates and discounts, and adds order totals. It is built on the V2 sales order header entity.
- Entity name
SalesOrderHeaderCDSEntity- Public entity name
CDSSalesOrderHeader- OData collection
CDSSalesOrderHeaders- Category
Document- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
CDSIntegration- Keys
SalesOrderNumber- Staging table
SalesOrderHeaderCDSStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CDSSalesOrderHeaders- Dataverse virtual table
mserp_salesorderheadercdsentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
SalesOrderHeaderV2Entity· rootCustTableOrderingCustomer(tableCustTable) · OuterJoin toSalesOrderHeaderV2Entity· read-onlyCustTableInvoiceCustomer(tableCustTable) · OuterJoin toSalesOrderHeaderV2Entity· read-onlySalesOrderLastChangeDateV2· OuterJoin toSalesOrderHeaderV2Entity· read-onlySalesOrderChargeLastChangeDate· OuterJoin toSalesOrderHeaderV2Entity· read-onlySalesOrderTotals· OuterJoin toSalesOrderHeaderV2Entity· read-onlySalesOrderOriginEntity· OuterJoin toSalesOrderHeaderV2Entity· read-onlySalesTableExternalWorkOrderStatus· OuterJoin toSalesOrderHeaderV2Entity
Fields (92)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ArePricesIncludingSalesTaxYes/no flag showing whether prices include sales tax. | EnumInclTax
| No | Yes | SalesTable.InclTax | |
CashDiscountCodeCash discount code applied to the order. | StringCustCashDiscCode | No | Yes | CashDisc.CashDiscCode | SalesTable.CashDisc |
ConfirmedReceiptDateConfirmed date on which the customer receives the goods. | DateSalesReceiptDateConfirmed | No | Yes | SalesTable.ReceiptDateConfirmed | |
ConfirmedShippingDateConfirmed ship date. | DateSalesShippingDateConfirmed | No | Yes | SalesTable.ShippingDateConfirmed | |
ContactPersonIdContact person for the order, linked to the contacts. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | SalesTable.ContactPersonId |
CurrencyCodeCurrency of the order. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | SalesTable.CurrencyCode |
CustomerRequisitionNumberCustomer's own requisition or purchase order number. | String (20)CustPurchaseOrder | No | Yes | SalesTable.PurchOrderFormNum | |
CustomersOrderReferenceReference text supplied by the customer. | String (60)CustRef | No | Yes | SalesTable.CustomerRef | |
DefaultShippingSiteIdSite for the order. | StringInventSiteId | No | Yes | InventSite.SiteId | SalesTable.InventSiteId |
DefaultShippingWarehouseIdWarehouse for the order. | StringSalesInventLocationId | No | Yes | InventLocation.InventLocationId | SalesTable.InventLocationId |
DeliveryAddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
DeliveryAddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
DeliveryAddressCountryRegionISOCodeISO code of the country or region of the address. | String (2)LogisticsAddressCountryRegionISOCode | No | Yes | None | |
DeliveryAddressCountyIdCounty code of the address. It depends on the country and state. | String (30)LogisticsAddressCountyId | No | Yes | LogisticsAddressCounty.CountyId | LogisticsPostalAddress.County |
DeliveryAddressDescriptionName or description of the location. | String (60)LogisticsDescription | No | Yes | LogisticsLocation.Description | |
DeliveryAddressDistrictNameName of the district, as text. | String (60)LogisticsAddressDistrictName | No | Yes | LogisticsPostalAddress.DistrictName | |
DeliveryAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table. | String (9)LogisticsDunsNumber | No | Yes | DirDunsNumber.DunsNumber | |
DeliveryAddressLatitudeGeographic latitude of the address. | RealLogisticsAddressLatitude | No | Yes | LogisticsPostalAddress.Latitude | |
DeliveryAddressLocationIdUnique ID of the location. It is the key of the table. | String (40)LogisticsLocationId | No | Yes | LogisticsLocation.LocationId | |
DeliveryAddressLongitudeGeographic longitude of the address. | RealLogisticsAddressLongitude | No | Yes | LogisticsPostalAddress.Longitude | |
DeliveryAddressNameName of the delivery recipient. | String (100)LogisticsDeliveryName | No | Yes | SalesTable.DeliveryName | |
DeliveryAddressPostBoxPost office box number. | String (20)LogisticsAddressPostBox | No | Yes | LogisticsPostalAddress.PostBox | |
DeliveryAddressStateIdState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressCounty.StateIdLogisticsAddressState.StateId | LogisticsPostalAddress.State |
DeliveryAddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
DeliveryAddressStreetNumberStreet or house number. | String (20)LogisticsAddressStreetNumber | No | Yes | LogisticsPostalAddress.StreetNumber | |
DeliveryAddressTimeZoneTime zone of the address. | Enum
| No | Yes | LogisticsPostalAddress.TimeZone | |
DeliveryAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
DeliveryBuildingComplimentExtra building detail, such as an entrance or floor. | String (60)LogisticsAddressBuildingCompliment | No | Yes | LogisticsPostalAddress.BuildingCompliment | |
DeliveryModeCodeMode of delivery for the order. | StringCustDlvModeId | No | Yes | DlvMode.Code | SalesTable.DlvMode |
DeliveryPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | LogisticsPostalAddress.RecId | |
DeliveryTermsCodeTerms of delivery for the order. | StringCustDlvTermId | No | Yes | DlvTerm.Code | SalesTable.DlvTerm |
DeliveryValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | Yes | LogisticsPostalAddress.ValidFrom | |
DeliveryValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | Yes | LogisticsPostalAddress.ValidTo | |
EmailEmail address on the order. | String (80)Email | No | Yes | SalesTable.Email | |
FormattedDelveryAddressDelivery address built as one text string.low confidence | String (250) | No | Yes | None | |
FormattedInvoiceAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
InvoiceAddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
InvoiceAddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
InvoiceAddressCountyIdCounty code of the address. It depends on the country and state. | String (30)LogisticsAddressCountyId | No | Yes | LogisticsAddressCounty.CountyId | LogisticsPostalAddress.County |
InvoiceAddressDistrictNameName of the district, as text. | String (60)LogisticsAddressDistrictName | No | Yes | LogisticsPostalAddress.DistrictName | |
InvoiceAddressLatitudeGeographic latitude of the address. | RealLogisticsAddressLatitude | No | Yes | LogisticsPostalAddress.Latitude | |
InvoiceAddressLongitudeGeographic longitude of the address. | RealLogisticsAddressLongitude | No | Yes | LogisticsPostalAddress.Longitude | |
InvoiceAddressPostBoxPost office box number. | String (20)LogisticsAddressPostBox | No | Yes | LogisticsPostalAddress.PostBox | |
InvoiceAddressStateIdState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressCounty.StateIdLogisticsAddressState.StateId | LogisticsPostalAddress.State |
InvoiceAddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
InvoiceAddressStreetNumberStreet or house number. | String (20)LogisticsAddressStreetNumber | No | Yes | LogisticsPostalAddress.StreetNumber | |
InvoiceAddressTimeZoneTime zone of the address. | Enum
| No | Yes | LogisticsPostalAddress.TimeZone | |
InvoiceAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
InvoiceBuildingComplimentExtra building detail, such as an entrance or floor. | String (60)LogisticsAddressBuildingCompliment | No | Yes | LogisticsPostalAddress.BuildingCompliment | |
InvoiceCustomerAccountNumberCustomer account that receives the invoice. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | SalesTable.InvoiceAccount |
InvoiceCustomerIsExternallyMaintainedYes/No flag showing the customer record is maintained outside the system. | EnumisExternallyMaintained
| No | Yes | CustTable.IsExternallyMaintained | |
InvoiceValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | Yes | LogisticsPostalAddress.ValidFrom | |
InvoiceValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | Yes | LogisticsPostalAddress.ValidTo | |
IsDeliveryAddressOrderSpecificYes or no choice showing whether the delivery address is a one-time address for this order. | EnumNoYesId
| No | Yes | None | |
IsDeliveryAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
IsInvoiceAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
IsOneTimeCustomerYes/no flag showing that the order is for a one-time customer. | EnumOneTimeCustomer
| No | Yes | SalesTable.OneTimeCustomer | |
IsSalesProcessingStoppedYes/no flag telling processing to skip the order. | EnumMCROrderStopped
| No | Yes | SalesTable.MCROrderStopped | |
LanguageIdLanguage used for the order. | String (7)CustLanguageId | No | Yes | LanguageTable.LanguageId | SalesTable.LanguageId |
OrderCreationDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | SalesTable.CreatedDateTime | |
OrderingCustomerAccountNumberCustomer account that the order is for. | String (20)CustAccount | No | Yes | CustTable.AccountNum | SalesTable.CustAccount |
OrderingCustomerIsExternallyMaintainedYes/No flag showing the customer record is maintained outside the system. | EnumisExternallyMaintained
| No | Yes | CustTable.IsExternallyMaintained | |
OrderResponsiblePersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
OrderTakerPersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
OrderTotalAmountOverall total amount of the order. | RealMCRTotalAmount | No | Yes | SalesOrderTotals.OrderTotalAmount | |
OrderTotalChargesAmountTotal of the charges on the order. | RealMCRTotalMarkupAmount | No | Yes | SalesOrderTotals.OrderTotalChargesAmount | |
OrderTotalDiscountAmountDiscount held at the level of the whole sales order. | RealSalesDiscountAmount | No | Yes | SalesOrderTotals.OrderTotalDiscountAmount | |
OrderTotalTaxAmountTotal tax amount for the order. | RealMCRTotalTaxAmount | No | Yes | SalesOrderTotals.OrderTotalTaxAmount | |
OrderHeaderTaxAmountSales tax amount held on the order header. | RealTaxAmount | No | Yes | SalesOrderTotals.OrderHeaderTaxAmount | |
PaymentTermsBaseDateBase date used for the payment terms. | DateCashDiscBaseDate | No | Yes | SalesTable.CashDiscBaseDate | |
PaymentTermsNameTerms of payment for the order. | String (100)CustPaymTermId | No | Yes | PaymTerm.PaymTermId | SalesTable.Payment |
PriceCustomerGroupCodePrice group of the order, linked to the price groups. | StringCustPriceGroup | No | Yes | SalesTable.PriceGroupId | |
QuotationNumberQuotation number that the order relates to. | String (20)QuotationId | No | Yes | SalesTable.QuotationId | |
RequestedReceiptDateDate on which the customer asked to receive the goods. | DateSalesReceiptDateRequested | No | Yes | SalesTable.ReceiptDateRequested | |
RequestedShippingDateShip date requested by the customer. | DateSalesShippingDateRequested | No | Yes | SalesTable.ShippingDateRequested | |
SalesOrderNameName of the customer on the order. | String (60)SalesName | No | Yes | SalesTable.SalesName | |
InvoiceAddressCountryRegionISOCodeTwo-letter ISO code. | String (2)LogisticsAddressCountryRegionISOCode | No | Yes | LogisticsAddressCountryRegion.ISOcode | |
SalesOrderNumberSales order number that identifies the order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | |
SalesOrderOriginCodeOrder origin code showing where the order came from. | StringSalesOriginId | No | Yes | SalesOrigin.OriginId | SalesTable.SalesOriginId |
SalesOrderProcessingStatusProcessing status of the sales order, shown as a set of fixed values. | Enum
| No | Yes | None | |
SalesOrderPromisingMethodMethod used to control delivery dates, such as sales lead time or ATP. | Enum
| No | Yes | SalesTable.DeliveryDateControlType | |
SalesOrderStatusStatus of the order: open, delivered, invoiced or cancelled. | Enum
| No | Yes | SalesTable.SalesStatus | |
SalesResponsibleWorker who is responsible for the sale. | Int64WorkerSalesResponsible | No | Yes | HcmWorker.RecId | SalesTable.WorkerSalesResponsible |
SalesTakerWorker who took the order. | Int64SalesTaker | No | Yes | HcmWorker.RecId | SalesTable.WorkerSalesTaker |
TotalDiscountAmountTotal discount amount for the order. | RealSalesDiscountAmount | No | Yes | SalesOrderTotals.TotalDiscountAmount | |
URLInternet address on the order. | String (255)URL | No | Yes | SalesTable.URL | |
AreTotalsUpdatedShows whether the order totals have been calculated. | EnumSalesTotalsCalculated
| No | Yes | computed | |
SalesOrderOriginTypeInternal type of the origin: not specified, sales order integration or work order integration. | Enum
| No | Yes | SalesOriginInternalType.OriginType | |
ExternalWorkOrderStatusStatus of the external work order, such as open and scheduled, in progress, closed and posted, or closed and cancelled. | Enum
| No | Yes | SalesTableExternalWorkOrderStatus.ExternalWorkOrderStatus | |
ProjectIdProject linked to the order. | String (20)ProjId | No | Yes | ProjTable.ProjId | SalesTable.ProjId |
ExpediteExpedite text for the order. | StringMCRExpedite | No | Yes | SalesTable.Expedite | |
SkipGlobalUnifiedPricingCalculationYes/no flag to skip attribute-based pricing and use standard pricing. | EnumNoYesId
| No | Yes | SalesTable.GUPSkipPricingCalculation |
Foreign keys (23)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
CashDiscountCode→CashDisc.CashDiscCode(key of CashDisc)Many SalesTable records → zero or one CashDisc record
CashDisc details: see CashDiscountEntity, CredManCashDiscRankEntity, CashDiscBiEntity
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many SalesTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many SalesTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DefaultShippingSiteId→InventSite.SiteId(key of InventSite)Many SalesTable records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
DefaultShippingWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many SalesTable records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
DeliveryAddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
DeliveryAddressCountyId→LogisticsAddressCounty.CountyId(key of LogisticsAddressCounty)Join on all of:
DeliveryAddressCountyId=LogisticsAddressCounty.CountyId,DeliveryAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,DeliveryAddressStateId=LogisticsAddressCounty.StateIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
DeliveryAddressStateId→LogisticsAddressCounty.StateId(key of LogisticsAddressCounty)Join on all of:
DeliveryAddressStateId=LogisticsAddressCounty.StateId,DeliveryAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,DeliveryAddressCountyId=LogisticsAddressCounty.CountyIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
DeliveryAddressStateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
DeliveryAddressStateId=LogisticsAddressState.StateId,DeliveryAddressCountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
DeliveryModeCode→DlvMode.Code(key of DlvMode)Many SalesTable records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
DeliveryTermsCode→DlvTerm.Code(key of DlvTerm)Many SalesTable records → zero or one DlvTerm record
DlvTerm details: see DeliveryTermsEntity, VRMDeliveryTermsEntity
InvoiceAddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
InvoiceAddressCountyId→LogisticsAddressCounty.CountyId(key of LogisticsAddressCounty)Join on all of:
InvoiceAddressCountyId=LogisticsAddressCounty.CountyId,DeliveryAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,DeliveryAddressStateId=LogisticsAddressCounty.StateIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
InvoiceAddressStateId→LogisticsAddressCounty.StateId(key of LogisticsAddressCounty)Join on all of:
InvoiceAddressStateId=LogisticsAddressCounty.StateId,DeliveryAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,DeliveryAddressCountyId=LogisticsAddressCounty.CountyIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
InvoiceAddressStateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
InvoiceAddressStateId=LogisticsAddressState.StateId,DeliveryAddressCountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
InvoiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SalesTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
LanguageId→LanguageTable.LanguageId(key of LanguageTable)Relation also requires LanguageTable.LabelFile = 1.
Many SalesTable records → exactly one LanguageTable record
LanguageTable details: see ConfirmingPOEntity, MainAccountTranslationEntity, RetailCatalogTranslationEntity
OrderingCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SalesTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
PaymentTermsName→PaymTerm.PaymTermId(key of PaymTerm)Many SalesTable records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
SalesOrderOriginCode→SalesOrigin.OriginId(key of SalesOrigin)Many SalesTable records → zero or one SalesOrigin record
SalesOrigin details: see SalesOrderOriginEntity
SalesResponsible→HcmWorker.RecId(key of HcmWorker)Many SalesTable records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
SalesTaker→HcmWorker.RecId(key of HcmWorker)Many SalesTable records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
ProjectId→ProjTable.ProjId(key of ProjTable)Many SalesTable records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
Need help with SalesOrderHeaderCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.