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 · root
  • CustTable · InnerJoin to CustPackingSlipJour
  • DirPartyTable · InnerJoin to CustTable
  • DirPartyTable_DirPerson (table DirPerson) · Derived to DirPartyTable
  • DirPartyTable_DirOrganizationBase (table DirOrganizationBase) · Derived to DirPartyTable
  • DirPartyTable_DirOrganization (table DirOrganization) · Derived to DirPartyTable_DirOrganizationBase
  • DirPartyTable_OMInternalOrganization (table OMInternalOrganization) · Derived to DirPartyTable_DirOrganizationBase
  • DirPartyTable_OMOperatingUnit (table OMOperatingUnit) · Derived to DirPartyTable_OMInternalOrganization
  • DirPartyTable_CompanyInfo (table CompanyInfo) · Derived to DirPartyTable_OMInternalOrganization
  • DirPartyTable_OMTeam (table OMTeam) · Derived to DirPartyTable_OMInternalOrganization
  • CustPackingSlipTrans · InnerJoin to CustPackingSlipJour
  • InventTable · InnerJoin to CustPackingSlipTrans
  • EcoResProduct · InnerJoin to InventTable
  • EcoResProduct_EcoResProductMaster (table EcoResProductMaster) · Derived to EcoResProduct
  • EcoResProduct_EcoResDistinctProduct (table EcoResDistinctProduct) · Derived to EcoResProduct
  • EcoResProduct_EcoResDistinctProductVariant (table EcoResDistinctProductVariant) · Derived to EcoResProduct_EcoResDistinctProduct
  • InventDim · OuterJoin to CustPackingSlipTrans
  • InventDistinctProductExpanded · OuterJoin to InventDim
  • InventTableModule · InnerJoin to CustPackingSlipTrans
  • SalesTable · InnerJoin to CustPackingSlipJour
  • RetailChannelTable · OuterJoin to SalesTable
  • RetailStoreTable · OuterJoin to RetailChannelTable
  • RetailChannelTable_RetailMCRChannelTable (table RetailMCRChannelTable) · Derived to RetailChannelTable
  • RetailChannelTable_RetailStoreTable (table RetailStoreTable) · Derived to RetailChannelTable
  • RetailChannelTable_RetailOnlineChannelTable (table RetailOnlineChannelTable) · Derived to RetailChannelTable
  • RetailChannelTable_RetailDirectSalesChannel (table RetailDirectSalesChannel) · Derived to RetailChannelTable
  • RetailChannelView · OuterJoin to SalesTable
  • CompanyInfo · OuterJoin to CustPackingSlipJour

Fields (21)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
OrderIdIdentifier of the sales order behind the shipment.String (60)
Description
YesYescomputed
RecordIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesCustPackingSlipTrans.RecId
AccountIdIdentifier of the customer account for the shipment.String (60)
Description
NoYescomputed
AccountNameFull name of the party.String (160)
DirPartyName
YesYesDirPartyTable.Name
ProductVariantIdProduct number shown to users. It identifies the product.String (70)
EcoResProductDisplayProductNumber
YesYesEcoResProduct.DisplayProductNumber
ShipDateShip date of the delivery.Date
SalesShippingDate
NoYesCustPackingSlipJour.DeliveryDate
LocationIdIdentifier of the location linked to the shipment.low confidenceString (60)
Description
NoYescomputed
OrderTypeType of the sales order, such as sales order, returned order or subscription.Enum
SalesType
  • Journal 0
  • Subscription 2
  • Sales 3
  • ReturnItem 4
  • ItemReq 6
  • Prepayment 7
NoYesCustPackingSlipJour.SalesType
ProductTypeWhether the record is an Item or a Service.Enum
ItemType
  • Item 0
  • Service 2
NoYesInventTable.ItemType
QuantityQuantity delivered in the sales unit.Real
SalesQty
NoYesCustPackingSlipTrans.Qty
UnitUnit of measure used for selling the item.String
SalesUnit
NoYesUnitOfMeasure.SymbolCustPackingSlipTrans.SalesUnit
ChannelName or identifier of the retail channel linked to the order.low confidenceString (60)
Description
NoYescomputed
FromAccountPartyIdUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber
ToAccountPartyIdUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber
InventoryQuantityQuantity in the inventory unit.Real
InventQty
NoYesCustPackingSlipTrans.inventQty
InventoryUnitSymbolUnit of measure used for the item in this module.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolInventTableModule.UnitId
ProductIdProduct number shown to users. It identifies the product.String (70)
EcoResProductDisplayProductNumber
YesYesEcoResProduct.DisplayProductNumber
ToAccountIdCustomer account that placed the order.String (20)
CustAccount
YesYesCustTable.AccountNumCustPackingSlipJour.OrderAccount
DocumentIdSales order that the packing slip belongs to.String (20)
SalesIdBase
YesYesSalesTable.SalesIdCustPackingSlipJour.SalesId
WarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
SalesDataAreaIdThe company (legal entity) that the record belongs to.String (4)
DataAreaId
NoYesCustPackingSlipTrans.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.

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

Email sales@drdynamics.co.uk