MfgProgramTemplate defines a Manufacturing Cloud program-based business, also called a Manufacturing Program. It provides template configuration for forecasting and the end-to-end sales process, including the transformations associated with the program. It is a template definition, not an individual business program record.
Key Elements
Elements marked as item-level belong to individual entries in programTemplateItems, not to the template as a whole.
| Element | What the Element Controls |
|---|---|
fullName |
The component's metadata identity, inherited from Metadata. It is separate from programTemplateName. |
programTemplateName |
Required. The manufacturing program template's unique identifier. |
status |
Required. The template state: Active, Draft, or Inactive. The documented default is Active. |
programTemplateItems |
A list of embedded MfgProgramTemplateItem definitions describing the template's transformations. |
templateItemName |
Required for each item. The name of the manufacturing program template item. |
transformationType |
Required for each item. Identifies the transformation kind: BusinessTransformation or ForecastSetRelation. |
transformationDisplayOrder |
Required for each item. An integer controlling the transformation's display order within the template, not its execution order. |
contextDefinition |
Item-level reference to ContextDefinition. Defines how data is mapped and transformed toward a target, such as an opportunity or account. |
sourceContextMappingName |
Item-level mapping name describing how input facts are mapped into structured information. |
targetContextMappingName |
Item-level mapping name describing how structured information is saved to a target, such as an opportunity or sales agreement. |
advAccountForecastSet |
Item-level reference to AdvAccountForecastSet. Identifies the forecast set associated with that transformation. |
Behavior and Constraints
Creating a program template requires the program-based business feature setting for Manufacturing Cloud.
Keep the two identifiers distinct: fullName identifies the metadata component, while the separate, required programTemplateName is documented as the template's unique identifier. Do not treat them as interchangeable.
The required status element expresses template state. Its documented default is Active, not Draft. A status value does not, by itself, establish whether any business programs currently use the template.
Each programTemplateItems entry requires templateItemName, transformationType, and transformationDisplayOrder. The transformation type identifies the kind of transformation represented by the item. Display order does not define when that transformation executes.
Read the mapping settings together. contextDefinition describes how data is mapped and transformed toward a target. sourceContextMappingName describes how input data becomes structured information, while targetContextMappingName describes how that structured result is saved. The source and target mappings describe complementary parts of the transformation, not alternative settings for the same step.
Deployment and Retrieval
MfgProgramTemplate components use the .mfgProgramTemplate file suffix and are stored in the MfgProgramTemplate folder.
In a package.xml manifest, use MfgProgramTemplate as the type name. The type supports the * wildcard in the manifest, so a retrieval can request all components of this type.
The MfgProgramTemplateItem definitions are embedded in the parent component through programTemplateItems. Preserve that container-and-item structure when preparing the component for deployment.
When checking dependencies, inspect each item separately. Its contextDefinition and advAccountForecastSet references belong to that item; treating them as template-wide settings loses the association between a transformation and its dependencies.
Relationships
The template connects individual transformation items to context definitions and forecast sets. Both reference elements are nested within programTemplateItems. The source and target mapping names also belong to those individual items.
References
-
ContextDefinition:contextDefinition. -
AdvAccountForecastSet:advAccountForecastSet.
Common Questions
Is MfgProgramTemplate a Manufacturing Program record?
No. It is a metadata template definition for a program-based business, including forecasting and transformation configuration. It is not an individual business program record.
Does a new program template default to Draft?
No. The documented default for the required status element is Active. Allowed values are Active, Draft, and Inactive. The status alone does not show whether business programs use the template.
How do I retrieve all MfgProgramTemplate components?
Use MfgProgramTemplate as the type name and * as the member in package.xml. Component files use the .mfgProgramTemplate suffix in the MfgProgramTemplate folder.
Does transformationDisplayOrder control execution order?
No. It controls display order within the template. Each item must provide this integer along with templateItemName and transformationType.
Which dependencies should I check before deploying a program template?
Check each item's contextDefinition reference to ContextDefinition and advAccountForecastSet reference to AdvAccountForecastSet. Keep those references associated with their individual items. Creating the template also requires the Manufacturing Cloud program-based business feature setting.