AdvAccountForecastSet defines Manufacturing Cloud advanced account forecasting configuration for a business unit or group of accounts. Separate forecast sets support account-specific forecasting and let you change one business unit's configuration without affecting another business unit's data.
The component controls how forecast facts are structured, calculated, adjusted, and displayed. It contains configuration, not the forecast fact records themselves. Its fact-object and field mappings refer to existing metadata; they do not define the fields that store forecast values.
Key Elements
| Element | What the Element Controls |
|---|---|
forecastSetName |
Required name of the forecast set record. This is separate from the inherited metadata identity, fullName. |
status |
Required status: Active or Inactive. |
forecastFactObjectName |
Required API name of the object containing forecast fact records. References CustomObject. |
forecastPeriodGroupName, periodFieldName
|
The first names the required forecast period group record. The second maps the period field on each forecast fact record. |
calculationFrequency |
Automatic recalculation frequency: Monthly, Quarterly, Weekly, or Yearly. Defaults to Monthly. |
rolloverFrequency |
Forecast-record rollover frequency. Accepts the same values as calculationFrequency and independently defaults to Monthly. |
generationDpeDefName, recalculateDpeDefName, regenerationDpeDefName, rolloverDpeDefName
|
Select the Data Processing Engine (DPE) definitions for generation, recalculation, regeneration, and rollover, respectively. Each references BatchCalcJobDefinition. |
dimensions |
Categorizes forecast data through fact-object field mappings, associated dimension sources, and source sequence numbers. |
forecastFormulas |
Defines real-time formulas applied after DPE calculations, with a period range and a QUANTITY or REVENUE calculation type. |
measureDefinitions |
Connects grid measures to fact-object fields and specifies computation, aggregation, measure type, and adjustment tracking. |
forecastAdjPeriods |
Defines adjustment windows through startDay, adjustmentDayCount, and frequency, with optional profile eligibility. Frequency values are Month, Quarter, Week, and Year; the default is Month. |
displayGroups |
Organizes measures for presentation. The documented displayGroupType value is MEASURE; isDefault marks a default group, and userProfileName selects the applicable profile. |
measureReferenceName |
Associates a display group item with a measure. The documentation is inconsistent about whether the identifier is a measure ID or a measure definition name. |
Behavior and Constraints
Creation prerequisite. The Manufacturing Cloud advanced account forecasting feature setting must be enabled to create a forecast set. The component requires forecastSetName, forecastFactObjectName, forecastPeriodGroupName, and status.
Fact-object mappings. The following elements identify fields on forecast fact records:
-
accountFieldName: the account field. -
periodFieldName: the period field. -
forecastSetFieldName: the Forecast Set ID field. -
forecastStatusFieldName: the forecast status field. -
forecastQuantityFieldName: the forecast quantity field. -
forecastRevenueFieldName: the forecast revenue field.
These are CustomField references, not field definitions created by the set. The required forecastPeriodGroupName names a period group record; it does not replace the fact record's periodFieldName mapping.
Dimensions. Each entry in dimensions categorizes forecast data, for example by product or ship-from location. It requires advAcctForecastDimName, dimensionFieldName, and hierarchySequenceNumber. The field mapping is another CustomField reference. dimensionSourceName names the associated dimension source, while hierarchySequenceNumber supplies that source's sequence within the set.
Calculation operations and schedules. Generation, recalculation, regeneration, and rollover have separate DPE definition selectors. Do not treat generationDpeDefName as the selector for every operation: recalculation uses recalculateDpeDefName, regeneration uses regenerationDpeDefName, and generation of rollover fact records uses rolloverDpeDefName.
calculationFrequency controls automatic recalculation, while rolloverFrequency controls record rollover. They are independent settings even though they share allowed values and the Monthly default.
Formula timing and range. Entries in forecastFormulas calculate values in real time after DPE calculations. Each formula requires formulaExpression, startPeriod, endPeriod, and formulaType. The type accepts QUANTITY or REVENUE and defaults to QUANTITY. The formula's start and end periods define its applicability, not the recalculation schedule or the adjustment window.
Measure calculation. Each entry in measureDefinitions requires three identifiers or names: advAcctForecastMeasureDefName names the measure definition, forecastDataMeasureName references the fact object's field, and forecastMeasureName supplies the name shown in the UI. Its required calculation settings have different jobs:
-
computationMethoddetermines how values are calculated. Allowed values areCUSTOM,DATA_PROCESSING_ENGINE_DEFINITION, andFORMULA; the default isDATA_PROCESSING_ENGINE_DEFINITION. -
aggregationTypedetermines how values are aggregated. Allowed values areAVERAGE,MAXIMUM,MINIMUM, andSUM; the default isSUM. -
forecastMeasureTypedistinguishesQUANTITYfromREVENUE; the default isQUANTITY.
Computation and aggregation are behavioral settings, not display labels. Within a measure, isAdjustmentTracked controls whether adjustments to that metric are tracked. Tracking does not define the adjustment window or profile eligibility.
Adjustment access and timing. Each entry in forecastAdjPeriods requires startDay, adjustmentDayCount, and frequency. Together they define when adjustments can be made and for how many days. The optional profileName references the profile with which the set can be adjusted. Use Month, Quarter, Week, or Year here, not the Monthly, Quarterly, Weekly, and Yearly values used for recalculation and rollover.
Display applicability and order. Each display group requires advAcctFrcstDisplayGroupName. Its userProfileName determines the profile for which the group applies; this is distinct from adjustment eligibility through forecastAdjPeriods's profileName.
Nested displayGroupItems associate measures with a group. Each item requires advAcctFrcstDplyGroupItemName and displayOrder. The latter controls presentation order, not calculation order.
Deployment and Retrieval
AdvAccountForecastSet components use the .advAccountForecastSet suffix and reside in the AdvAccountForecastSet folder. In package.xml, use AdvAccountForecastSet as the type name. The type supports the wildcard member *.
The component inherits fullName as its metadata identity. Preserve the distinction between that identity and the separately required forecastSetName, which names the forecast set record.
Dimensions, formulas, adjustment periods, measure definitions, display groups, and display group items are nested configuration within the forecast set. They are not separate deployable assets established by these definitions. The component does not contain the forecast fact records.
The deployment dependency scope includes the referenced fact object and fields, DPE definitions, and profiles. The field mappings do not create their referenced fields. A set can also be selected by a manufacturing program template, so changes to a set must account for templates that reference it.
Relationships
The set connects forecast configuration to fact storage, calculation definitions, and profiles. Its period group and dimension source are named through forecastPeriodGroupName and dimensionSourceName, respectively. These record-name associations are distinct from the metadata-type references listed below.
References
-
BatchCalcJobDefinition:generationDpeDefName,recalculateDpeDefName,regenerationDpeDefName,rolloverDpeDefName. -
CustomField:accountFieldName,dimensionFieldName,forecastDataMeasureName,forecastQuantityFieldName,forecastRevenueFieldName,forecastSetFieldName,forecastStatusFieldName,periodFieldName. -
CustomObject:forecastFactObjectName. -
Profile:profileName,userProfileName.
Referenced By
-
MfgProgramTemplate:advAccountForecastSet.
Documentation Inconsistencies
The identifier expected by measureReferenceName is inconsistent in Salesforce's documentation. The field definition describes a measure ID, but the metadata example supplies Sample Def Name, matching the example's advAcctForecastMeasureDefName value. Do not assume from the element name alone that it requires either a record ID or a developer name.
Common Questions
How do I retrieve AdvAccountForecastSet in package.xml?
Use AdvAccountForecastSet as the type name. The type supports * as a wildcard member. Retrieved components use the .advAccountForecastSet suffix in the AdvAccountForecastSet folder, with their nested configuration structures.
Does AdvAccountForecastSet contain forecast data or create its fields?
No. It contains forecasting configuration, not forecast fact records. forecastFactObjectName identifies the object storing those records, and the field mappings reference fields rather than define them.
Should forecast frequencies use Month or Monthly?
Use Monthly, Quarterly, Weekly, or Yearly for calculationFrequency and rolloverFrequency. Use Month, Quarter, Week, or Year for frequency inside forecastAdjPeriods.
Which profile setting controls forecast adjustments?
profileName inside forecastAdjPeriods identifies the profile with which the set can be adjusted. userProfileName inside a display group controls display applicability instead. Per-measure isAdjustmentTracked controls tracking, not eligibility.
Does measureReferenceName require a record ID or a measure definition name?
The documentation does not give a consistent answer. Its field definition says measure ID, while its metadata example uses a value matching advAcctForecastMeasureDefName. Neither identifier form should be assumed solely from the element name.