Table
ForecastSales
Demand forecast
Holds demand forecast lines, with the item, quantity, dates, price and the customer or customer group the forecast is for. It also carries project forecast and budget fields. A line can link to a forecast model, an item allocation key and a project. An expanded line points back to the original line through ExpandId.
- Table name
ForecastSales- Module
Master planning- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Forecast- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (63)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActiveShows whether the forecast line is active. | EnumNoYes (enum) | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ActivityNumberNumber of the activity the line is linked to. | String (50)ProjActivityNumber | No | smmActivities.ActivityNumber | ProjForecastSalesEntityForecastSalesBiEntity |
AllocateMethodHow the amount is spread over time: not at all, by period or by a key. | EnumBudgetAllocateMethod (enum) | No | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more | |
AmountAmount of the forecast line, in the currency given in the Currency field. | RealAmountCur | No | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more | |
CommentFree-text comment on the line. | String (60)BudgetComment | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ContractLineIdBilling rule linked to the line. | StringPSAContractLineNum | No | ForecastSalesBiEntity | |
CostPriceCost price of the item on the forecast line. | RealCostPrice | No | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 5 more | |
CovShows whether the line is included in cash flow forecasts. | EnumLedgerAppropriationNoYes (enum) | No | ProjForecastSalesEntityForecastSalesBiEntity | |
CovStatusNumber showing the cash flow forecast status of the line.low confidence | IntegerCovStatus | No | ProjForecastSalesEntityForecastSalesBiEntity | |
CurrencyCurrency code for the line. It points to a record in the currency table. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more |
CustAccountIdCustomer account the forecast is for. It points to a customer. | String (20)CustAccount | No | CustTable.AccountNum | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more |
CustGroupIdCustomer group the forecast is for. It points to a customer group. | StringCustGroupId | No | CustGroup.CustGroup | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | ForecastSalesBiEntity | |
DefaultDimensionFinancial dimension values attached to the line, as a dimension value set. | Int64InventSiteLinkedDimensionValueSet | No | DimensionAttributeValueSet.RecId | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 1 more |
DescriptionShort text describing the line. | String (60)TransTxt | No | ForecastSalesBiEntity | |
DiscAmountDiscount amount per unit on the line. | RealUnitDiscountAmountCur | No | ProjForecastSalesEntityForecastSalesBiEntity | |
DiscPercentDiscount given as a percentage. | RealDiscPct | No | ProjForecastSalesEntityForecastSalesBiEntity | |
EndDateEnd date of the forecast line. | DateEndDate | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ExpandIdRecord ID of the demand forecast line this line was expanded from. | Int64ForecastSalesRefRecId | No | ForecastSales.RecId | ForecastSalesBiEntity |
ForecastEntryNumberSequence number that identifies the demand forecast entry. | String (25)ForecastDemandForecastNumSeq | No | EntAssetMaintenanceJobTypeItemForecastV3EntityForecastDemandForecastEntryEntityForecastSalesBiEntity | |
FreqNumber of time units in one period of the forecast. | IntegerPeriods | No | ProjForecastSalesEntityForecastSalesBiEntity | |
FreqCodeTime unit for the period: days, months, years or all. | EnumPeriodUnit (enum) | No | ProjForecastSalesEntityForecastSalesBiEntity | |
InventDimIdLink to the inventory dimensions of the line, such as site or warehouse. | String (20)InventDimId | No | InventDim.inventDimId | ProjForecastSalesEntityForecastSalesBiEntity |
InventQtyQuantity in the inventory unit. | RealInventQty | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ItemAllocateIdItem allocation key used to split the forecast. | StringForecastItemAllocationId | No | ForecastItemAllocation.AllocateId | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more |
ItemBOMIdBill of materials used as the sub-BOM for the item. | String (20)ItemBOMId | No | BOMTable.BOMId | ProjForecastSalesEntityForecastSalesBiEntity |
ItemDescriptionLonger description text for the item. | String (1000)EcoResDescription | No | ForecastSalesBiEntity | |
ItemGroupIdItem group the forecast is for. It points to an item group. | StringItemGroupId | No | InventItemGroup.ItemGroupId | ProjForecastSalesEntityForecastSalesBiEntity |
ItemIdItem the forecast is for. It points to an item. | String (20)ItemId | No | InventTable.ItemId | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more |
ItemRouteIdRoute used as the subroute for the item. | String (20)ItemRouteId | No | RouteTable.RouteId | ProjForecastSalesEntityForecastSalesBiEntity |
KeyIdPeriod allocation key used to spread the forecast over periods. | StringLedgerAllocateKeyId | No | LedgerAllocateKey.Key | ProjForecastSalesEntityForecastSalesBiEntity |
KittingInventTransIdID of the kit linked to the line. | String (20)KittingInventTransId | No | ProjForecastSalesEntity | |
KittingLineNumLine number within the kit. | RealLineNum | No | ProjForecastSalesEntity | |
ModelIdForecast model the line belongs to. | StringForecastModelHeadId | Yes | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | ForecastSalesBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PdsCWQtyQuantity in the catch weight unit. | RealPdsCWInventQty | No | ForecastDemandForecastEntryEntityProjForecastSalesEntityForecastSalesBiEntity | |
PdsCWUnitIdUnit of measure used for catch weight. | StringPdsCWUnitId | No | ProjForecastSalesEntityForecastSalesBiEntity | |
PlanningPriorityNumber that ranks how important this forecast demand is for planning. | RealReqPlanningPriority | No | ForecastDemandForecastEntryEntityProjForecastSalesEntityForecastSalesBiEntity | |
PriceUnitNumber of units that one price applies to. | RealPriceUnit | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ProjCategoryIdProject category for the line. It points to a project category. | String (30)ProjCategoryId | No | ProjCategory.CategoryId | ProjForecastSalesEntityForecastSalesBiEntity |
ProjForecastBudgetTypeType of project budget line: original, remaining, revision or carry-forward. | EnumProjForecastBudgetType (enum) | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ProjForecastCostPaymDateExpected date the cost is paid, for project forecasts. | DateProjForecastCostPaymDate | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ProjForecastEliminationDateElimination date for the project forecast. | DateProjForecastEliminationDate | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ProjForecastInvoiceDateExpected invoice date for the project forecast. | DateProjForecastInvoiceDate | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ProjForecastSalesPaymDateExpected date the sale is paid, for project forecasts. | DateProjForecastSalesPaymDate | No | ProjForecastSalesEntityForecastSalesBiEntity | |
ProjFundingSourceProject funding source for the line, by record ID. | Int64ProjFundingSourceRefId | No | ProjFundingSource.RecId | ProjForecastSalesEntityForecastSalesBiEntity |
ProjIdProject the line belongs to. It points to a project. | String (20)ProjId | No | ProjTable.ProjId | ProjForecastSalesEntityForecastSalesBiEntity |
ProjLinePropertyIdProject line property assigned to the line. | StringProjLinePropertyId | No | ProjLineProperty.LinePropertyId | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityEntAssetMaintenanceJobTypeItemForecastEntityand 3 more |
ProjTransIdProject transaction ID linked to the line. | String (20)ProjTransIdBase | No | ProjForecastSalesEntityForecastSalesBiEntity | |
PSARefPurchLineRecord ID of a purchase order line the forecast refers to. | Int64PSAPurchRefRecId | No | PurchLine.RecId | ForecastSalesBiEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | ForecastDemandForecastV2EntityForecastSalesBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | ForecastSalesBiEntity | |
ReportYes/no flag called Report. Its exact meaning is not stated in the metadata.low confidence | EnumNoYes (enum) | No | ProjForecastSalesEntityForecastSalesBiEntity | |
SalesMarkupSales charges amount on the line. | RealSalesMarkup | No | ProjForecastSalesEntityForecastSalesBiEntity | |
SalesPriceUnit selling price. | RealSalesPrice | No | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more | |
SalesQtyForecast quantity in the sales unit. | RealSalesQty | No | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more | |
SalesUnitIdUnit of measure for the sales quantity. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | EntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more |
StartDateStart date of the forecast line. | DateStartDate | Yes | ForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | ForecastSalesBiEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupIdSales tax group applied to the line. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | ProjForecastSalesEntityForecastSalesBiEntity |
TaxItemGroupIdItem sales tax group applied to the line. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | ProjForecastSalesEntityForecastSalesBiEntity |
Indexes (13)
ItemIdxNot unique.
ModelIdxNot unique.
AccountIdxCustAccountId,ModelId,StartDateNot unique.
ItemGroupIdxItemGroupId,ItemId,ModelId,StartDateNot unique.
AccounGrouptIdxCustGroupId,CustAccountId,ModelId,StartDateNot unique.
ExpandIdxUnique.
CovIdxNot unique.
ProjIdxProjCategoryId,ProjId,ModelIdNot unique.
ProjTransIdxNot unique.
ProjFundingSourceIdxNot unique.
PSARefPurchRecIdIdxNot unique.
ForecastEntryNumberIdxUnique, alternate key.
KittingKitIdxRecId,KittingInventTransId,KittingLineNumNot unique.
Relations (23)
Each relation joins ForecastSales to another table on the fields shown.
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany ForecastSales records → exactly one Currency record
CustGroup→CustGroupJoin on
CustGroupId = CustGroup.CustGroupMany ForecastSales records → zero or one CustGroup record
CustTable→CustTableJoin on
CustAccountId = CustTable.AccountNumMany ForecastSales records → zero or one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany ForecastSales records → zero or one DimensionAttributeValueSet record
ExpandForecastSales→ForecastSalesJoin on
ExpandId = ForecastSales.RecIdMany ForecastSales records → zero or one ForecastSales record
ForecastItemAllocation→ForecastItemAllocationJoin on
ItemAllocateId = ForecastItemAllocation.AllocateIdMany ForecastSales records → zero or one ForecastItemAllocation record
ForecastModel→ForecastModelJoin on
ModelId = ForecastModel.ModelId,ForecastModel.Type = HeadingSub::HeadingMany ForecastSales records → exactly one ForecastModel record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany ForecastSales records → zero or one InventDim record
InventItemGroup→InventItemGroupJoin on
ItemGroupId = InventItemGroup.ItemGroupIdMany ForecastSales records → zero or one InventItemGroup record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany ForecastSales records → zero or one InventTable record
LedgerAllocateKey→LedgerAllocateKeyJoin on
KeyId = LedgerAllocateKey.KeyMany ForecastSales records → zero or one LedgerAllocateKey record
ProjCategory→ProjCategoryJoin on
ProjCategoryId = ProjCategory.CategoryIdMany ForecastSales records → zero or one ProjCategory record
ProjFundingSource→ProjFundingSourceJoin on
ProjFundingSource = ProjFundingSource.RecIdMany ForecastSales records → zero or one ProjFundingSource record
ProjLineProperty→ProjLinePropertyJoin on
ProjLinePropertyId = ProjLineProperty.LinePropertyIdMany ForecastSales records → zero or one ProjLineProperty record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany ForecastSales records → zero or one ProjTable record
PurchLine→PurchLineJoin on
PSARefPurchLine = PurchLine.RecIdMany ForecastSales records → zero or one PurchLine record
RouteTable→RouteTableJoin on
ItemRouteId = RouteTable.RouteIdMany ForecastSales records → zero or one RouteTable record
SalesUnitId→UnitOfMeasureJoin on
SalesUnitId = UnitOfMeasure.SymbolMany ForecastSales records → zero or one UnitOfMeasure record
smmActivities→smmActivitiesJoin on
ActivityNumber = smmActivities.ActivityNumberMany ForecastSales records → zero or one smmActivities record
SubBOMTable→BOMTableJoin on
ItemBOMId = BOMTable.BOMIdMany ForecastSales records → zero or one BOMTable record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroupId = TaxGroupHeading.TaxGroupMany ForecastSales records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroupId = TaxItemGroupHeading.TaxItemGroupMany ForecastSales records → zero or one TaxItemGroupHeading record
WbsEstimates→ProjWBSEstimatesViewJoin on
ProjId = ProjWBSEstimatesView.ProjId,ActivityNumber = ProjWBSEstimatesView.ActivityNumberMany ForecastSales records → zero or one ProjWBSEstimatesView record
Get this data out
Tables are not exposed directly. These public entities read from ForecastSales; use one of them in Power BI, Power Platform or a data management project.
EntAssetMaintenanceJobTypeItemForecastV3Entity· 8 fields from this tableEntAssetMaintenanceJobTypeItemForecastV2Entity· 7 fields from this tableForecastDemandForecastV2Entity· 15 fields from this tableEntAssetMaintenanceJobTypeItemForecastEntity· 7 fields from this tableEntAssetMaintenanceWorkOrderLineItemForecastEntity· 7 fields from this tableForecastDemandForecastEntryEntity· 17 fields from this tableProjForecastSalesEntity· 50 fields from this tableForecastDemandForecastEntity· 12 fields from this tableForecastSalesBiEntity· 59 fields from this table
Need help with ForecastSales in a report, an integration or a migration? Talk to Dr Dynamics.