ForecastingSourceDefinition
Represents the object, measure, date type, and hierarchy that a forecast uses to project sales.
The information in this topic applies only to forecast types created in Summer ’21 and later.
Introduced in API version 49.0.
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: Name of the forecast category that is associated with the forecast type.
- Possible values:
- Opportunity.ForecastCategoryName — Opportunity.ForecastCategoryName
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: Field that is used for the forecast type’s date type. For example, the CloseDate field on Opportunity is used for opportunity close date-based forecast types.
- Possible values:
- Opportunity.CloseDate — Opportunity.CloseDate
- OpportunityLineItem.ServiceDate — OpportunityLineItem.ServiceDate
- OpportunityLineItemSchedule.ScheduleDate — OpportunityLineItemSchedule.ScheduleDate
-
Type: string
-
Properties: Create, Filter, Group, Sort, Update
-
Description: The developer name of the forecasting source definition.
Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: Use this field to group forecasts by product family.
- Possible values:
- Product2.Family — Product2.Family
- Type: picklist
- Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description: Language of the forecasting source definition. For example, English.
- Type: string
- Properties: Create, Filter, Group, Sort, Update
- Description: Required. Controlling label for this forecasting source definition.
-
Type: picklist
-
Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
-
Description:
Field that is used for the forecast type’s measure. For example, the Amount field on Opportunity is associated with revenue-based forecast types.
Possible values are*: *Where
Customrepresents the name of the custom field that a forecast type’s measure is based on. Example: UseMegawatts__cto forecast energy consumption. -
Possible values:
- Opportunity.Amount — Opportunity.Amount
- Opportunity.Custom — Opportunity.Custom
- Opportunity.TotalOpportunityQuantity — Opportunity.TotalOpportunityQuantity
- OpportunityLineItem.Custom — OpportunityLineItem.Custom
- OpportunityLineItem.Quantity — OpportunityLineItem.Quantity
- OpportunityLineItem.TotalPrice — OpportunityLineItem.TotalPrice
- OpportunityLineItemSchedule.Custom — OpportunityLineItemSchedule.Custom
- OpportunityLineItemSchedule.Quantity — OpportunityLineItemSchedule.Quantity
- OpportunityLineItemSchedule.Revenue — OpportunityLineItemSchedule.Revenue
- OpportunitySplit.Custom — OpportunitySplit.Custom
- OpportunitySplit.SplitAmount — OpportunitySplit.SplitAmount
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: Object associated with this forecasting source definition.
- Possible values:
- Opportunity — Opportunity
- OpportunityLineItem — OpportunityLineItem
- OpportunityLineItemSchedule — OpportunityLineItemSchedule
- OpportunitySplit — OpportunitySplit
- Product2 — Product2
-
Type: picklist
-
Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
-
Description:
For a territory-based forecast type, indicates the field that is used for territory information.
For user role-based forecast types, this value is
null. -
Possible values:
- Opportunity.Territory2Id — Opportunity.Territory2Id
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: Specifies who owns the forecast.
- Possible values:
- Opportunity.OwnerId — Opportunity.OwnerId
- OpportunitySplit.SplitOwnerId — OpportunitySplit.SplitOwnerId
Use ForecastingSourceDefinition to define a forecast type’s structure. A forecasting source definition is joined via ForecastingTypeSource to ForecastingType.
In this example, a user role-based forecast type called Custom Amount Forecast is based on the Amount and Close Date fields on opportunities.