Data entity

SalesOrderLineD365SalesEntity

Sales order lines prepared for exchange with Dynamics 365 Sales, keyed by sales order number and line creation sequence number. It holds item, quantity, price, discounts, charges, delivery dates, inventory dimensions and line totals. Extra fields cover how the line was created and line numbering.

Entity name
SalesOrderLineD365SalesEntity
Public entity name
D365SalesOrderLine
OData collection
D365SalesOrderLines
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
CDSIntegration
Keys
SalesOrderNumber, LineCreationSequenceNumber
Staging table
SalesOrderLineD365SalesStaging

Use it in Power BI and Power Platform

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

  • SalesLine · root
  • EcoResCategory · OuterJoin to SalesLine · read-only
  • PCClass · Derived to EcoResCategory
  • InventDim · OuterJoin to SalesLine · read-only
  • LogisticsPostalAddressBaseEntity · OuterJoin to SalesLine
  • SalesOrderLineTotals · OuterJoin to SalesLine · read-only
  • SalesTable · OuterJoin to SalesLine · read-only
  • InventDistinctProduct · OuterJoin to SalesLine · 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
  • SalesProductCategoryHierarchy (table EcoResCategoryHierarchy) · OuterJoin to SalesLine · read-only

Fields (79)

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
ShippingSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
ShippingWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ShippingWarehouseLocationIdLocation inside the warehouse.String
WMSLocationId
NoNo (private)WMSLocation.wMSLocationIdInventDim.wMSLocationId
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
ItemBatchNumberBatch number of the inventory.String (20)
InventBatchId
NoYesInventDim.inventBatchId
ItemSerialNumberSerial number of the inventory.String (20)
InventSerialId
NoNo (private)InventDim.inventSerialId
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
DeliveryValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoNo (private)LogisticsPostalAddress.ValidTo
DeliveryValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoNo (private)LogisticsPostalAddress.ValidFrom
FormattedDeliveryAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
IsDeliveryAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

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

Platform enum: values not in the metadata extract.

NoYescomputed
ProductNameName of the product on the line.String (60)
EcoResProductName
NoYescomputed
CurrencyCodeCurrency of the order.String (3)
CustCurrencyCode
NoYesCurrency.CurrencyCodeSalesTable.CurrencyCode
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
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
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
InventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions.String (20)
TradeInventTransId
NoYesInventTransOrigin.InventTransIdSalesLine.InventTransId
SalesDeliverNowQuantity to deliver now, in sales units.Real
SalesQty
NoYesSalesLine.SalesDeliverNow
InventoryServiceReservationIdReservation ID from the inventory service.String (50)
InventInventoryServiceReservationId
NoYesSalesLine.InventoryServiceReservationId
SkipCreateAutoChargesYes/no flag to skip the automatic charges for the line.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
SalesOrderIntegrationCreationTypeShows how the line was created through an integration, using fixed values.low confidenceEnum
SalesOrderIntegrationCreationType
  • Unknown 0
  • WinQuote 1
NoYesvirtual
DefaultLineNumberFromLineCreationSequenceNumberSetting that controls whether the default line number comes from the line creation sequence number.Enum
SalesDefaultLineNumberFromLineCreationSequenceNumber
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed

Foreign keys (22)

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 SalesOrderLineD365SalesEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk