{
"sections": [
"title",
"description",
"file_information",
"directory_location",
"fields",
"wsdl_segment",
"declarative_metadata_sample_definition"
],
"title": "ForecastingSourceDefinition - Metadata API",
"description": "Represents the object, measure, date type, and hierarchy that a forecast uses to project sales.",
"file_information": ".forecastingSourceDefinition",
"directory_location": "forecastingSourceDefinitions",
"fields_columns": [
"type",
"description"
],
"fields": {
"categoryField": {
"type": "string",
"description": "Name of the forecast category that is associated with the forecast type. Possible values are: Opportunity.ForecastCategoryName"
},
"dateField": {
"type": "string",
"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 are: Opportunity.CloseDate OpportunityLineItem.ServiceDate OpportunityLineItemSchedule.ScheduleDate"
},
"familyField": {
"type": "string",
"description": "Use this field to group forecasts by product family. Possible values are: Product2.Family"
},
"masterLabel": {
"type": "string",
"description": "Controlling label for this forecasting source definition.",
"required": true
},
"measureField": {
"type": "string",
"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*: Opportunity.Amount Opportunity.Custom Opportunity.TotalOpportunityQuantity OpportunityLineItem.Custom OpportunityLineItem.Quantity OpportunityLineItem.TotalPrice OpportunityLineItemSchedule.Custom OpportunityLineItemSchedule.Quantity OpportunityLineItemSchedule.Revenue OpportunitySplit.Custom OpportunitySplit.SplitAmount *Where Custom represents the name of the custom field that a forecast type’s measure is based on. Example: Use Megawatts__c to forecast energy consumption."
},
"sourceObject": {
"type": "string",
"description": "Object associated with this forecasting source definition. Possible values are: Opportunity OpportunityLineItem OpportunityLineItemSchedule OpportunitySplit Product2",
"required": true
},
"territory2Field": {
"type": "string",
"description": "For a territory-based forecast type, indicates the field that is used for territory information. Possible values are: Opportunity.Territory2Id For user role-based forecast types, this value is null."
},
"userField": {
"type": "string",
"description": "Specifies who owns the forecast. Possible values are: Opportunity.OwnerId OpportunitySplit.SplitOwnerId"
}
},
"wsdl_segment": "```xml\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n\n```",
"declarative_metadata_sample_definition": [
{
"description": "The following is an example of a ForecastingSourceDefinition component.",
"code": "\n\n TestFsd\n Opportunity\n Opportunity.Amount\n Opportunity.CloseDate\n Opportunity.OwnerId\n Opportunity.ForecastCategoryName\n"
}
]
}