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· rootEcoResCategory· OuterJoin toSalesLine· read-onlyPCClass· Derived toEcoResCategoryInventDim· OuterJoin toSalesLine· read-onlyLogisticsPostalAddressBaseEntity· OuterJoin toSalesLineSalesOrderLineTotals· OuterJoin toSalesLine· read-onlySalesTable· OuterJoin toSalesLine· read-onlyInventDistinctProduct· OuterJoin toSalesLine· read-onlyEcoResDistinctProduct· OuterJoin toInventDistinctProduct· read-onlyEcoResProductSystemLanguage· OuterJoin toEcoResDistinctProduct· read-onlyEcoResProductTranslationToSystemLanguage(tableEcoResProductTranslation) · OuterJoin toEcoResDistinctProduct· read-onlyInventTable· OuterJoin toEcoResDistinctProduct· read-onlyEcoResProductMaster· OuterJoin toInventTable· read-onlyEcoResProductMasterTranslationToSystemLanguage(tableEcoResProductTranslation) · OuterJoin toInventTable· read-onlyEcoResDistinctProduct_EcoResDistinctProductVariant(tableEcoResDistinctProductVariant) · Derived toEcoResDistinctProductSalesProductCategoryHierarchy(tableEcoResCategoryHierarchy) · OuterJoin toSalesLine· read-only
Fields (79)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
SalesOrderNumberSales order number that the line belongs to, pointing to the sales order header. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | SalesLine.SalesId |
LineCreationSequenceNumberSequence number that records the order in which lines were created. | IntegerSalesLineCreationSequenceNumber | No | Yes | SalesLine.LineCreationSequenceNumber | |
SalesOrderLineStatusStatus of the line, such as open order, delivered, invoiced or cancelled. | Enum
| No | Yes | SalesLine.SalesStatus | |
IsLineStoppedYes/No flag showing that the line is stopped. | EnumLineStopped
| No | Yes | SalesLine.Blocked | |
DeliveryAddressNameName of the delivery recipient or place. | String (100)LogisticsDeliveryName | No | Yes | SalesLine.DeliveryName | |
ItemNumberItem number of the product sold, pointing to an item record. | String (20)ItemIdSmall | No | No (private) | InventTable.ItemId | SalesLine.ItemId |
LineAmountNet amount of the line. | RealSalesLineAmount | No | Yes | SalesLine.LineAmount | |
LineDiscountAmountDiscount amount per unit on the line. | RealSalesLineDisc | No | Yes | SalesLine.LineDisc | |
LineDiscountPercentageDiscount percentage on the line. | RealSalesLinePercent | No | Yes | SalesLine.LinePercent | |
MultilineDiscountAmountMultiline discount amount per unit. | RealSalesMultiLnDisc | No | Yes | SalesLine.MultiLnDisc | |
MultilineDiscountPercentageMultiline discount as a percentage. | RealSalesMultiLnPercent | No | Yes | SalesLine.MultiLnPercent | |
LineDescriptionFree text description of the line or item. | String (1000)ItemFreeTxt | No | Yes | SalesLine.Name | |
SalesPriceQuantityNumber of units that the unit price applies to. | RealPriceUnit | No | Yes | SalesLine.PriceUnit | |
RequestedReceiptDateReceipt date that the customer asked for. | DateSalesReceiptDateRequested | No | Yes | SalesLine.ReceiptDateRequested | |
FixedPriceChargesCharges amount on the line. | RealSalesMarkup | No | Yes | SalesLine.SalesMarkup | |
SalesPricePrice of one unit on the line. | RealSalesPrice | No | Yes | SalesLine.SalesPrice | |
OrderedSalesQuantityOrdered quantity in sales units. | RealSalesOrderedQty | No | Yes | SalesLine.SalesQty | |
SalesUnitSymbolUnit of measure used for selling the item. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | SalesLine.SalesUnit |
ConfirmedShippingDateShip date confirmed for the line. | DateSalesShippingDateConfirmed | No | Yes | SalesLine.ShippingDateConfirmed | |
RequestedShippingDateShip date that the customer asked for. | DateSalesShippingDateRequested | No | Yes | SalesLine.ShippingDateRequested | |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | No (private) | EcoResConfiguration.Name | InventDim.configId |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | No (private) | EcoResColor.Name | InventDim.InventColorId |
ShippingSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
ShippingWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
ShippingWarehouseLocationIdLocation inside the warehouse. | StringWMSLocationId | No | No (private) | WMSLocation.wMSLocationId | InventDim.wMSLocationId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | No (private) | EcoResSize.Name | InventDim.InventSizeId |
OrderedInventoryStatusIdInventory status of the stock. | StringWHSInventStatusId | No | Yes | WHSInventStatus.InventStatusId | InventDim.InventStatusId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | No (private) | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | No (private) | EcoResVersion.Name | InventDim.InventVersionId |
ItemBatchNumberBatch number of the inventory. | String (20)InventBatchId | No | Yes | InventDim.inventBatchId | |
ItemSerialNumberSerial number of the inventory. | String (20)InventSerialId | No | No (private) | InventDim.inventSerialId | |
TotalTaxAmountTotal tax for the line. | RealMCRTotalTaxAmount | No | Yes | SalesOrderLineTotals.TotalTaxAmount | |
TotalChargesAmountTotal charges for the line. | RealMCRTotalMarkupAmount | No | Yes | SalesOrderLineTotals.TotalChargesAmount | |
TotalDiscountAmountDiscount amount for the line, shown as a value. | RealSalesDiscountAmount | No | Yes | computed | |
ProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | No | Yes | EcoResProduct.DisplayProductNumber | |
AreTotalsCalculatedShows whether the line totals have been calculated. | EnumSalesTotalsCalculated
| No | Yes | computed | |
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 | |
DeliveryAddressPostBoxPost office box number. | String (20)LogisticsAddressPostBox | No | Yes | LogisticsPostalAddress.PostBox | |
DeliveryAddressStateIdState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.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 | |
DeliveryValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | No (private) | LogisticsPostalAddress.ValidTo | |
DeliveryValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | No (private) | LogisticsPostalAddress.ValidFrom | |
FormattedDeliveryAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
IsDeliveryAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
IsDeliveryAddressOrderSpecificYes/no flag showing whether the line uses a one-time delivery address. | EnumNoYesId
| No | Yes | computed | |
ProductNameName of the product on the line. | String (60)EcoResProductName | No | Yes | computed | |
CurrencyCodeCurrency of the order. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | SalesTable.CurrencyCode |
AllowedOverdeliveryPercentagePercentage by which more than the ordered quantity may be delivered. | RealSalesOverDeliveryPct | No | Yes | SalesLine.OverDeliveryPct | |
AllowedUnderdeliveryPercentagePercentage by which less than the ordered quantity may be delivered. | RealSalesUnderDeliveryPct | No | Yes | SalesLine.UnderDeliveryPct | |
ConfirmedReceiptDateReceipt date confirmed for the customer. | DateSalesReceiptDateConfirmed | No | Yes | SalesLine.ReceiptDateConfirmed | |
DeliveryModeCodeMode of delivery for the line, pointing to a delivery mode record. | StringDlvModeId | No | Yes | DlvMode.Code | SalesLine.DlvMode |
DeliveryTermsIdTerms of delivery for the line, pointing to a delivery terms record. | StringSalesDlvTermId | No | Yes | DlvTerm.Code | SalesLine.DlvTerm |
ExternalItemNumberItem number used by the customer or an outside party. | String (20)SalesExternalItemId | No | Yes | SalesLine.ExternalItemId | |
SalesOrderPromisingMethodMethod used to control delivery dates, such as sales lead time, available-to-promise (ATP) or capable-to-promise (CTP). | Enum
| No | Yes | SalesLine.DeliveryDateControlType | |
SalesProductCategoryNameName of the category. | String (254)EcoResCategoryName | No | Yes | EcoResCategory.Name | |
ProjectCategoryIdProject category linked to the line. | String (30)ProjCategoryId | No | Yes | ProjCategory.CategoryId | SalesLine.ProjCategoryId |
ProjectIdProject linked to the line, pointing to a project record. | String (20)ProjId | No | Yes | ProjTable.ProjId | SalesLine.ProjId |
ProjectLinePropertyIdProject line property of the line. | StringProjLinePropertyId | No | Yes | ProjLineProperty.LinePropertyId | SalesLine.ProjLinePropertyId |
SalesProductCategoryHierarchyNameName of the category hierarchy. | String (128)EcoResCategoryHierarchyName | No | Yes | EcoResCategoryHierarchy.Name | |
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 | |
InventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions. | String (20)TradeInventTransId | No | Yes | InventTransOrigin.InventTransId | SalesLine.InventTransId |
SalesDeliverNowQuantity to deliver now, in sales units. | RealSalesQty | No | Yes | SalesLine.SalesDeliverNow | |
InventoryServiceReservationIdReservation ID from the inventory service. | String (50)InventInventoryServiceReservationId | No | Yes | SalesLine.InventoryServiceReservationId | |
SkipCreateAutoChargesYes/no flag to skip the automatic charges for the line. | EnumNoYesId
| No | Yes | computed | |
SalesOrderIntegrationCreationTypeShows how the line was created through an integration, using fixed values.low confidence | Enum
| No | Yes | virtual | |
DefaultLineNumberFromLineCreationSequenceNumberSetting that controls whether the default line number comes from the line creation sequence number. | EnumSalesDefaultLineNumberFromLineCreationSequenceNumber
| No | Yes | computed |
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.
SalesOrderNumber→SalesTable.SalesId(key of SalesTable)Many SalesLine records → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
ItemNumber→InventTable.ItemId(key of InventTable)Many SalesLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
SalesUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many SalesLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ShippingSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ShippingWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
ShippingWarehouseLocationId→WMSLocation.wMSLocationId(key of WMSLocation)Join on all of:
ShippingWarehouseLocationId=WMSLocation.wMSLocationId,ShippingWarehouseId=WMSLocation.inventLocationIdMany InventDim records → zero or one WMSLocation record
WMSLocation details: see WMSWarehouseLocationEntity, WHSWarehouseSlottingTemplateDetailsV3Entity, WHSWarehouseLocationAdvancedWarehouseManagementProcessEnablementRequestEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
OrderedInventoryStatusId→WHSInventStatus.InventStatusId(key of WHSInventStatus)Many InventDim records → zero or one WHSInventStatus record
WHSInventStatus details: see WHSInventoryStatusEntity, WHSInventStatusCDREntity
ProductStyleId→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
ProductVersionId→EcoResVersion.Name(key of EcoResVersion)Many InventDim records → zero or one EcoResVersion record
EcoResVersion details: see EcoResProductMasterVersionEntity, EcoResProductMasterVersionTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
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→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
CurrencyCode→Currency.CurrencyCode(key of Currency)Many SalesTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DeliveryModeCode→DlvMode.Code(key of DlvMode)Many SalesLine records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
DeliveryTermsId→DlvTerm.Code(key of DlvTerm)Many SalesLine records → zero or one DlvTerm record
DlvTerm details: see DeliveryTermsEntity, VRMDeliveryTermsEntity
ProjectCategoryId→ProjCategory.CategoryId(key of ProjCategory)Many SalesLine records → zero or one ProjCategory record
ProjCategory details: see ProjectCategoryEntity, ProjControlCostGroupCategoriesEntity, ResResourceSetupDataEntity
ProjectId→ProjTable.ProjId(key of ProjTable)Many SalesLine records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjectLinePropertyId→ProjLineProperty.LinePropertyId(key of ProjLineProperty)Many SalesLine records → zero or one ProjLineProperty record
ProjLineProperty details: see ProjProjectLinePropertyEntity, TrvExpMobileProjLinePropertyEntity, ProjBillingTypeLinePropertyEntity
InventoryLotId→InventTransOrigin.InventTransId(key of InventTransOrigin)Zero or one SalesLine record → zero or one InventTransOrigin record
InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity
Need help with SalesOrderLineD365SalesEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.