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(tableSalesOrderLineV2Entity) · rootSalesOrderLineTotals· OuterJoin toSalesOrderLineEntity· read-onlyInventDistinctProduct· OuterJoin toSalesOrderLineEntity· 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 toEcoResDistinctProductSalesOrderHeaderCDSEntity· InnerJoin toSalesOrderLineEntity· read-onlySalesProductCategoryHierarchy(tableEcoResCategoryHierarchy) · OuterJoin toSalesOrderLineEntity· read-only
Fields (77)
| 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 |
ShippingWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
ShippingSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
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 |
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 | |
FormattedDeliveryAddressDelivery address built as one text string.low confidence | String (250) | No | Yes | None | |
IsDeliveryAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
IsDeliveryAddressOrderSpecificYes or no choice showing whether the line uses a one-time delivery address. | EnumNoYesId
| No | Yes | None | |
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 |
SalesOrderProcessingStatusProcessing status of the sales order, shown as a set of fixed values. | Enum
| No | Yes | None | |
OrderingCustomerIsExternallyMaintainedYes/No flag showing the customer record is maintained outside the system. | EnumisExternallyMaintained
| No | Yes | CustTable.IsExternallyMaintained | |
InvoiceCustomerIsExternallyMaintainedYes/No flag showing the customer record is maintained outside the system. | EnumisExternallyMaintained
| No | Yes | CustTable.IsExternallyMaintained | |
AreSalesOrderTotalsUpdatedShows whether the order totals have been calculated. | EnumSalesTotalsCalculated
| No | Yes | None | |
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 | |
ItemBatchNumberBatch number of the inventory. | String (20)InventBatchId | No | Yes | InventDim.inventBatchId | |
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 | |
SalesOrderOriginTypeInternal type of the origin: not specified, sales order integration or work order integration. | Enum
| No | Yes | SalesOriginInternalType.OriginType | |
PickedQuantityQuantity that has been picked for the line. | RealSalesQty | No | Yes | virtual | |
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 | |
SalesOrderNumberHeaderSales order number that identifies the order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | |
SalesDeliverNowQuantity to deliver now, in sales units. | RealSalesQty | No | Yes | SalesLine.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.
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
ShippingWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
ShippingSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
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
Need help with SalesOrderLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.