Data entity

SalesOrderLineCDSEntity

Dataverse-oriented view of sales order lines, keyed by sales order number and line creation sequence number. It holds item, quantity, unit price, discounts, charges, delivery dates, site and warehouse. It also adds product names and line totals.

Entity name
SalesOrderLineCDSEntity
Public entity name
CDSSalesOrderLine
OData collection
CDSSalesOrderLines
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
CDSIntegration
Keys
SalesOrderNumber, LineCreationSequenceNumber
Staging table
SalesOrderLineCDSStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/CDSSalesOrderLines
Dataverse virtual table
mserp_salesorderlinecdsentity. 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

  • SalesOrderLineEntity (table SalesOrderLineV2Entity) · root
  • SalesOrderLineTotals · OuterJoin to SalesOrderLineEntity · read-only
  • InventDistinctProduct · OuterJoin to SalesOrderLineEntity · read-only
  • EcoResDistinctProduct · OuterJoin to InventDistinctProduct · read-only
  • EcoResProductSystemLanguage · OuterJoin to EcoResDistinctProduct · read-only
  • EcoResProductTranslationToSystemLanguage (table EcoResProductTranslation) · OuterJoin to EcoResDistinctProduct · read-only
  • InventTable · OuterJoin to EcoResDistinctProduct · read-only
  • EcoResProductMaster · OuterJoin to InventTable · read-only
  • EcoResProductMasterTranslationToSystemLanguage (table EcoResProductTranslation) · OuterJoin to InventTable · read-only
  • EcoResDistinctProduct_EcoResDistinctProductVariant (table EcoResDistinctProductVariant) · Derived to EcoResDistinctProduct
  • SalesOrderHeaderCDSEntity · InnerJoin to SalesOrderLineEntity · read-only
  • SalesProductCategoryHierarchy (table EcoResCategoryHierarchy) · OuterJoin to SalesOrderLineEntity · read-only

Fields (77)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
SalesOrderNumberSales order number that the line belongs to, pointing to the sales order header.String (20)
SalesIdBase
NoYesSalesTable.SalesIdSalesLine.SalesId
LineCreationSequenceNumberSequence number that records the order in which lines were created.Integer
SalesLineCreationSequenceNumber
NoYesSalesLine.LineCreationSequenceNumber
SalesOrderLineStatusStatus of the line, such as open order, delivered, invoiced or cancelled.Enum
SalesStatus
  • None 0
  • Backorder 1
  • Delivered 2
  • Invoiced 3
  • Canceled 4
NoYesSalesLine.SalesStatus
IsLineStoppedYes/No flag showing that the line is stopped.Enum
LineStopped
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesLine.Blocked
DeliveryAddressNameName of the delivery recipient or place.String (100)
LogisticsDeliveryName
NoYesSalesLine.DeliveryName
ItemNumberItem number of the product sold, pointing to an item record.String (20)
ItemIdSmall
NoNo (private)InventTable.ItemIdSalesLine.ItemId
LineAmountNet amount of the line.Real
SalesLineAmount
NoYesSalesLine.LineAmount
LineDiscountAmountDiscount amount per unit on the line.Real
SalesLineDisc
NoYesSalesLine.LineDisc
LineDiscountPercentageDiscount percentage on the line.Real
SalesLinePercent
NoYesSalesLine.LinePercent
MultilineDiscountAmountMultiline discount amount per unit.Real
SalesMultiLnDisc
NoYesSalesLine.MultiLnDisc
MultilineDiscountPercentageMultiline discount as a percentage.Real
SalesMultiLnPercent
NoYesSalesLine.MultiLnPercent
LineDescriptionFree text description of the line or item.String (1000)
ItemFreeTxt
NoYesSalesLine.Name
SalesPriceQuantityNumber of units that the unit price applies to.Real
PriceUnit
NoYesSalesLine.PriceUnit
RequestedReceiptDateReceipt date that the customer asked for.Date
SalesReceiptDateRequested
NoYesSalesLine.ReceiptDateRequested
FixedPriceChargesCharges amount on the line.Real
SalesMarkup
NoYesSalesLine.SalesMarkup
SalesPricePrice of one unit on the line.Real
SalesPrice
NoYesSalesLine.SalesPrice
OrderedSalesQuantityOrdered quantity in sales units.Real
SalesOrderedQty
NoYesSalesLine.SalesQty
SalesUnitSymbolUnit of measure used for selling the item.String
SalesUnit
NoYesUnitOfMeasure.SymbolSalesLine.SalesUnit
ConfirmedShippingDateShip date confirmed for the line.Date
SalesShippingDateConfirmed
NoYesSalesLine.ShippingDateConfirmed
RequestedShippingDateShip date that the customer asked for.Date
SalesShippingDateRequested
NoYesSalesLine.ShippingDateRequested
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoNo (private)EcoResConfiguration.NameInventDim.configId
ProductColorIdColour of the product.String
EcoResItemColorName
NoNo (private)EcoResColor.NameInventDim.InventColorId
ShippingWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ShippingSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoNo (private)EcoResSize.NameInventDim.InventSizeId
OrderedInventoryStatusIdInventory status of the stock.String
WHSInventStatusId
NoYesWHSInventStatus.InventStatusIdInventDim.InventStatusId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoNo (private)EcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoNo (private)EcoResVersion.NameInventDim.InventVersionId
TotalTaxAmountTotal tax for the line.Real
MCRTotalTaxAmount
NoYesSalesOrderLineTotals.TotalTaxAmount
TotalChargesAmountTotal charges for the line.Real
MCRTotalMarkupAmount
NoYesSalesOrderLineTotals.TotalChargesAmount
TotalDiscountAmountDiscount amount for the line, shown as a value.Real
SalesDiscountAmount
NoYescomputed
ProductNumberProduct number shown to users. It identifies the product.String (70)
EcoResProductDisplayProductNumber
NoYesEcoResProduct.DisplayProductNumber
AreTotalsCalculatedShows whether the line totals have been calculated.Enum
SalesTotalsCalculated
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
DeliveryAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
DeliveryAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
DeliveryAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
DeliveryAddressCountyIdCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
DeliveryAddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
DeliveryAddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
DeliveryAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
DeliveryAddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
DeliveryAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
DeliveryAddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
DeliveryAddressPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
DeliveryAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
DeliveryAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
DeliveryAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
DeliveryAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
DeliveryAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
DeliveryBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
FormattedDeliveryAddressDelivery address built as one text string.low confidenceString (250)NoYesNone
IsDeliveryAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
IsDeliveryAddressOrderSpecificYes or no choice showing whether the line uses a one-time delivery address.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesNone
ProductNameName of the product on the line.String (60)
EcoResProductName
NoYescomputed
CurrencyCodeCurrency of the order.String (3)
CustCurrencyCode
NoYesCurrency.CurrencyCodeSalesTable.CurrencyCode
SalesOrderProcessingStatusProcessing status of the sales order, shown as a set of fixed values.Enum
SalesOrderProcessingStatus
  • Active 0
  • Confirmed 1
  • Picked 2
  • PartiallyDelivered 3
  • Delivered 4
  • Invoiced 5
  • PartiallyInvoiced 6
  • Canceled 7
  • DeliveredPartiallyInvoiced 8
NoYesNone
OrderingCustomerIsExternallyMaintainedYes/No flag showing the customer record is maintained outside the system.Enum
isExternallyMaintained
NoYes

Platform enum: values not in the metadata extract.

NoYesCustTable.IsExternallyMaintained
InvoiceCustomerIsExternallyMaintainedYes/No flag showing the customer record is maintained outside the system.Enum
isExternallyMaintained
NoYes

Platform enum: values not in the metadata extract.

NoYesCustTable.IsExternallyMaintained
AreSalesOrderTotalsUpdatedShows whether the order totals have been calculated.Enum
SalesTotalsCalculated
NoYes

Platform enum: values not in the metadata extract.

NoYesNone
AllowedOverdeliveryPercentagePercentage by which more than the ordered quantity may be delivered.Real
SalesOverDeliveryPct
NoYesSalesLine.OverDeliveryPct
AllowedUnderdeliveryPercentagePercentage by which less than the ordered quantity may be delivered.Real
SalesUnderDeliveryPct
NoYesSalesLine.UnderDeliveryPct
ConfirmedReceiptDateReceipt date confirmed for the customer.Date
SalesReceiptDateConfirmed
NoYesSalesLine.ReceiptDateConfirmed
DeliveryModeCodeMode of delivery for the line, pointing to a delivery mode record.String
DlvModeId
NoYesDlvMode.CodeSalesLine.DlvMode
DeliveryTermsIdTerms of delivery for the line, pointing to a delivery terms record.String
SalesDlvTermId
NoYesDlvTerm.CodeSalesLine.DlvTerm
ExternalItemNumberItem number used by the customer or an outside party.String (20)
SalesExternalItemId
NoYesSalesLine.ExternalItemId
ItemBatchNumberBatch number of the inventory.String (20)
InventBatchId
NoYesInventDim.inventBatchId
SalesOrderPromisingMethodMethod used to control delivery dates, such as sales lead time, available-to-promise (ATP) or capable-to-promise (CTP).Enum
SalesDeliveryDateControlType
  • None 0
  • SalesLeadTime 1
  • ATP 2
  • ATPPlusIssueMargin 3
  • CTP 4
  • FullRunCTP 5
NoYesSalesLine.DeliveryDateControlType
SalesProductCategoryNameName of the category.String (254)
EcoResCategoryName
NoYesEcoResCategory.Name
SalesOrderOriginTypeInternal type of the origin: not specified, sales order integration or work order integration.Enum
SalesOriginType
  • NotSpecified 0
  • SalesOrderIntegration 1
  • WorkOrderIntegration 2
NoYesSalesOriginInternalType.OriginType
PickedQuantityQuantity that has been picked for the line.Real
SalesQty
NoYesvirtual
ProjectCategoryIdProject category linked to the line.String (30)
ProjCategoryId
NoYesProjCategory.CategoryIdSalesLine.ProjCategoryId
ProjectIdProject linked to the line, pointing to a project record.String (20)
ProjId
NoYesProjTable.ProjIdSalesLine.ProjId
ProjectLinePropertyIdProject line property of the line.String
ProjLinePropertyId
NoYesProjLineProperty.LinePropertyIdSalesLine.ProjLinePropertyId
SalesProductCategoryHierarchyNameName of the category hierarchy.String (128)
EcoResCategoryHierarchyName
NoYesEcoResCategoryHierarchy.Name
DeliveryPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesLogisticsPostalAddress.RecId
SalesOrderNumberHeaderSales order number that identifies the order.String (20)
SalesIdBase
NoYesSalesTable.SalesId
SalesDeliverNowQuantity to deliver now, in sales units.Real
SalesQty
NoYesSalesLine.SalesDeliverNow

Foreign keys (20)

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.

Need help with SalesOrderLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk