Data entity
ScpHistoricalSalesDemandEntity
Read-only transaction data on past shipments, based on customer packing slips and their lines. Each record, keyed by record ID, has the product, quantity, unit, ship date, order type, warehouse and company. It also has order account and sales order details. It is meant as historical sales demand input for planning.
- Entity name
ScpHistoricalSalesDemandEntity- Public entity name
HistoricalSalesDemand- OData collection
HistoricalSalesDemands- Category
Transaction- Module
Supply chain planning- Read-only
Yes- Data management enabled
Yes- Configuration key
SupplyChainPlanning- Keys
RecordId- Staging table
ScpHistoricalSalesDemandStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/HistoricalSalesDemands- Dataverse virtual table
mserp_scphistoricalsalesdemandentity. 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
CustPackingSlipJour· rootCustTable· InnerJoin toCustPackingSlipJourDirPartyTable· InnerJoin toCustTableDirPartyTable_DirPerson(tableDirPerson) · Derived toDirPartyTableDirPartyTable_DirOrganizationBase(tableDirOrganizationBase) · Derived toDirPartyTableDirPartyTable_DirOrganization(tableDirOrganization) · Derived toDirPartyTable_DirOrganizationBaseDirPartyTable_OMInternalOrganization(tableOMInternalOrganization) · Derived toDirPartyTable_DirOrganizationBaseDirPartyTable_OMOperatingUnit(tableOMOperatingUnit) · Derived toDirPartyTable_OMInternalOrganizationDirPartyTable_CompanyInfo(tableCompanyInfo) · Derived toDirPartyTable_OMInternalOrganizationDirPartyTable_OMTeam(tableOMTeam) · Derived toDirPartyTable_OMInternalOrganizationCustPackingSlipTrans· InnerJoin toCustPackingSlipJourInventTable· InnerJoin toCustPackingSlipTransEcoResProduct· InnerJoin toInventTableEcoResProduct_EcoResProductMaster(tableEcoResProductMaster) · Derived toEcoResProductEcoResProduct_EcoResDistinctProduct(tableEcoResDistinctProduct) · Derived toEcoResProductEcoResProduct_EcoResDistinctProductVariant(tableEcoResDistinctProductVariant) · Derived toEcoResProduct_EcoResDistinctProductInventDim· OuterJoin toCustPackingSlipTransInventDistinctProductExpanded· OuterJoin toInventDimInventTableModule· InnerJoin toCustPackingSlipTransSalesTable· InnerJoin toCustPackingSlipJourRetailChannelTable· OuterJoin toSalesTableRetailStoreTable· OuterJoin toRetailChannelTableRetailChannelTable_RetailMCRChannelTable(tableRetailMCRChannelTable) · Derived toRetailChannelTableRetailChannelTable_RetailStoreTable(tableRetailStoreTable) · Derived toRetailChannelTableRetailChannelTable_RetailOnlineChannelTable(tableRetailOnlineChannelTable) · Derived toRetailChannelTableRetailChannelTable_RetailDirectSalesChannel(tableRetailDirectSalesChannel) · Derived toRetailChannelTableRetailChannelView· OuterJoin toSalesTableCompanyInfo· OuterJoin toCustPackingSlipJour
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
OrderIdIdentifier of the sales order behind the shipment. | String (60)Description | Yes | Yes | computed | |
RecordIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | CustPackingSlipTrans.RecId | |
AccountIdIdentifier of the customer account for the shipment. | String (60)Description | No | Yes | computed | |
AccountNameFull name of the party. | String (160)DirPartyName | Yes | Yes | DirPartyTable.Name | |
ProductVariantIdProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | Yes | Yes | EcoResProduct.DisplayProductNumber | |
ShipDateShip date of the delivery. | DateSalesShippingDate | No | Yes | CustPackingSlipJour.DeliveryDate | |
LocationIdIdentifier of the location linked to the shipment.low confidence | String (60)Description | No | Yes | computed | |
OrderTypeType of the sales order, such as sales order, returned order or subscription. | Enum
| No | Yes | CustPackingSlipJour.SalesType | |
ProductTypeWhether the record is an Item or a Service. | Enum
| No | Yes | InventTable.ItemType | |
QuantityQuantity delivered in the sales unit. | RealSalesQty | No | Yes | CustPackingSlipTrans.Qty | |
UnitUnit of measure used for selling the item. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | CustPackingSlipTrans.SalesUnit |
ChannelName or identifier of the retail channel linked to the order.low confidence | String (60)Description | No | Yes | computed | |
FromAccountPartyIdUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
ToAccountPartyIdUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
InventoryQuantityQuantity in the inventory unit. | RealInventQty | No | Yes | CustPackingSlipTrans.inventQty | |
InventoryUnitSymbolUnit of measure used for the item in this module. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | InventTableModule.UnitId |
ProductIdProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | Yes | Yes | EcoResProduct.DisplayProductNumber | |
ToAccountIdCustomer account that placed the order. | String (20)CustAccount | Yes | Yes | CustTable.AccountNum | CustPackingSlipJour.OrderAccount |
DocumentIdSales order that the packing slip belongs to. | String (20)SalesIdBase | Yes | Yes | SalesTable.SalesId | CustPackingSlipJour.SalesId |
WarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
SalesDataAreaIdThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | CustPackingSlipTrans.DataAreaId |
Foreign keys (5)
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.
Unit→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many CustPackingSlipTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
InventoryUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many InventTableModule records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
ToAccountId→CustTable.AccountNum(key of CustTable)Many CustPackingSlipJour records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
DocumentId→SalesTable.SalesId(key of SalesTable)Many CustPackingSlipJour records → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
WarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
Need help with ScpHistoricalSalesDemandEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.