---
schema_version: "1"
id: 16df98dc7df3e2130e2feb5160c25f930702b9ee25c529b22d45cd0ff11e5f05
title: MfgProgramTemplate
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_mfgprogramtemplate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mfgprogramtemplate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 413b626bf6f7256ebc8cbd21032f8e1047daf4fcf0c02137c8d58da44ae27bb5
description: Represents a definition of a program to create a program-based business. A program-based business, also known as a Manufacturing Program, enables manufacturers to drive their business models with forecasting tools and manage the end-to-end sales process efficiently.
---
# MfgProgramTemplate

Represents a definition of a program to create a program-based business. A program-based business, also known as a Manufacturing Program, enables manufacturers to drive their business models with forecasting tools and manage the end-to-end sales process efficiently.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

MfgProgramTemplate components have the suffix .mfgProgramTemplate and are stored in the MfgProgramTemplate folder.

## Version

MfgProgramTemplate components are available in API version 54.0 and later.

## Special Access Rules

The program-based business feature setting for Manufacturing Cloud is required to create a program template.

## Fields

| Field Name | Description |
| --- | --- |
| description | 
Field Type

string

Description

The description of the manufacturing program template.



 |
| programTemplateItems | 

Field Type

[MfgProgramTemplateItem\[\]](#subtype_MfgProgramTemplateItem)

Description

The list of templates associated with the manufacturing program template.



 |
| programTemplateName | 

Field Type

string

Description

Required.

The unique identifier for the manufacturing program template.



 |
| status | 

Field Type

MfgProgramTemplateStatus (enumeration of type string)

Description

Required.

The status of the manufacturing program template.

Values are:

- Active
- Draft
- Inactive

The default value is Active.



 |

## MfgProgramTemplateItem

A program template item defines each of the templates associated with a manufacturing program. A template item includes program details, such as a data transformation type and a display order. Transformation type is the method to forecast business visibility to manufacturers.

| Field Name | Description |
| --- | --- |
| advAccountForecastSet | 
Field Type

string

Description

The forecast set associated with the transformation.



 |
| contextDefinition | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The context definition that defines how data is mapped and transformed to the target, such as an opportunity or account.



 |
| description | 

Field Type

string

Description

The description of the manufacturing program template item.



 |
| sourceContextMappingName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The context mapping that defines how data is mapped from a list of facts(Input Data) to create structured information.



 |
| targetContextMappingName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The context mapping that defines how the structured data is saved to the target, such as an opportunity or sales agreement.



 |
| templateItemName | 

Field Type

string

Description

Required.

The name of the manufacturing program template item.



 |
| transformationDisplayOrder | 

Field Type

int

Description

Required.

The display order of the transformation in the manufacturing program template.



 |
| transformationType | 

Field Type

MfgProgramTransformationType (enumeration of type string)

Description

Required.

Specifies the type of transformation.

Values are:

- BusinessTransformation
- ForecastSetRelation





 |

## Declarative Metadata Sample Definition

The following is an example of a MfgProgramTemplate component.

<?xml version="1.0" encoding="UTF-8"?>
<MfgProgramTemplate xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <description\>Program Template</description\>
     <programTemplateItems\>
         <templateItemName\>Template Item #1</templateItemName\>
         <transformationDisplayOrder\>1</transformationDisplayOrder\>
         <transformationType\>BusinessTransformation</transformationType\>
         <description\>Program Template Item</description\>
     </programTemplateItems\>
     <programTemplateName\>Sample Program Template</programTemplateName\>
     <status\>Draft</status\>
</MfgProgramTemplate\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
     <types\>
         <members\>\*</members\>
         <name\>MfgProgramTemplate</name\>
     </types\>
     <version\>54.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").