ActionPlanTemplate defines the template content used to create action plans for records of a specified parent object. It controls the template's items, their field values, and dependencies that determine item sequencing and creation timing. It is metadata - configuration used to create work - rather than an individual action plan or its generated tasks.
ActionPlanTemplateItem, ActionPlanTemplateItemValue, and ActionPlanTemplateItemDependency are nested structures within the component, not separate deployable components. Also distinguish this metadata type from the runtime ActionPlanTemplate object: restrictions on customizing that object are not necessarily restrictions on deploying template metadata.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The component's metadata identity, inherited from Metadata. It is separate from the template's name and uniqueName. |
name, uniqueName
|
At template and item level, both are required. name supplies the name; uniqueName supplies the record's unique identifier. A value entry's name instead identifies a field, such as Subject. |
targetEntityType |
Required. Identifies the parent object to which the template applies. Custom objects must have activities enabled. |
actionPlanType |
The template type. Valid values are Industries, Retail, ITSM, PrvdEngmtCompliance, and KAM. |
actionPlanTemplateItem |
Contains the template's item definitions, including their entity types, field values, display order, and required-work settings. |
actionPlanTemplateItemValue |
Contains a field-value definition within an item. An item can contain multiple entries, each identifying a field through name. |
itemEntityType |
Required on items and value entries. Identifies the item entity; the documented serialization uses Task. Do not confuse it with a value entry's field-identifying name. |
valueLiteral, valueFormula
|
Supply a literal field value or a formula. Examples include a literal task subject or priority and an ActivityDate formula of StartDate + 10. |
isRequired |
Indicates whether the task created from the item is required. It does not control whether users can add ad hoc items. |
isAdHocItemCreationEnabled |
Required. true enables ad hoc item creation for the template; false disables it. |
displayOrder |
Controls presentation within the template version, not execution order. |
actionPlanTemplateItemDependencies |
Contains dependency definitions governing item sequencing and creation timing. |
creationType, previousTemplateItem, templateItem
|
Required within each dependency, along with its name. They identify how the dependent item is created, its prerequisite item, and the dependent item itself. |
estimatedCompletionDays |
The estimated number of days needed to complete the action plan. This is distinct from item date formulas and dependency sequencing. |
ParentTemplateId |
The parent ActionPlanTemplate record ID. It is not a developer name or metadata component-name reference. |
Behavior and Constraints
Creating or accessing action plan templates requires both the Customize Application permission and the IndustriesActionPlans license.
targetEntityType supports these standard objects: Account, BusinessMilestone, Campaign, Case, Claim, Contact, Contract, InsurancePolicy, InsurancePolicyCoverage, Lead, Opportunity, PersonLifeEvent, and Visit. A custom object is supported when activities are enabled for it.
Tooling can expose a narrower actionPlanType list containing only Industries and Retail. That is not the complete documented platform value set, which also includes ITSM, PrvdEngmtCompliance, and KAM.
Item values and required work
Each item can define multiple field values. For example, a task item can use valueLiteral for Subject and Priority, and valueFormula for ActivityDate. The documented formula StartDate + 10 and literal priority Normal are examples, not required values or defaults.
isRequired and isAdHocItemCreationEnabled answer different questions. The first marks prescribed work as required; the second controls the ability to add unplanned items to the template's action plans.
Sequencing and creation timing
A dependency's previousTemplateItem identifies the prerequisite whose completion precedes the dependent item identified by templateItem. creationType specifies how that dependent item is created. The documented example uses OnPreviousItemCompleted; this is neither a documented default nor a complete allowed-value list.
When diagnosing unexpected item order or delayed creation, inspect the dependency entries and creationType, rather than treating displayOrder as execution order. Neither displayOrder nor estimatedCompletionDays replaces dependency sequencing or an item's date formula.
Deployment and Retrieval
ActionPlanTemplate components use the .apt suffix and reside in the actionPlanTemplates folder. In package.xml, use ActionPlanTemplate as the type name. The type supports * in members for wildcard selection, as described in Deploying and Retrieving Metadata with the Zip File.
Items, item values, and dependencies travel inside the template component. They are not separate manifest members. Dependency entries contain previousTemplateItem and templateItem item structures.
Keep the three identity concepts separate when comparing components: inherited fullName identifies the metadata component, while the template and its items carry required uniqueName identifiers in addition to their name values.
ParentTemplateId requires record-ID interpretation when comparing environments. It points to a parent template record, not to a metadata component by developer name.
Relationships
The parent-object association comes from targetEntityType; item-object associations come from nested itemEntityType values. Within actionPlanTemplateItemValue, name identifies a field such as Subject, Priority, or ActivityDate. The template's own name, item names, and dependency names are not those field references.
References
-
CustomObject:targetEntityType, nesteditemEntityType- object references recognized for impact analysis. -
CustomField:namewithinactionPlanTemplateItemValue- the field reference recognized for impact analysis. -
ActionPlanTemplate:ParentTemplateId- a relationship to a parent runtime record by ID, not a metadata component-name reference.
Documentation Inconsistencies
The element descriptions call itemEntityType a field name, but the serialized example uses the entity name Task, and the object-reference mapping also treats it as an entity name. Read it as the item entity in this context. The nested value's name, such as ActivityDate, identifies the field.
Reported Issues
-
Adding permissions may not resolve failures to create custom actions, buttons, or links on the runtime object. In a February-March 2024 report, attempts on
ActionPlanTemplateproduced "Object Name: bad value for restricted picklist field: ActionPlanTemplate" and "Insufficient Privileges" despite broad object permissions and Action Plans permission-set and license assignments. Respondents attributed the failures to unsupported object customization, and the requester reported that Salesforce Support confirmed the limitation. This concerns customization of the runtime object, not deployment ofActionPlanTemplatemetadata. See the custom action and button discussion.
Common Questions
How do I retrieve all ActionPlanTemplate components?
Use ActionPlanTemplate as the type name and * as the member in package.xml. Components use the .apt suffix in the actionPlanTemplates folder.
Does displayOrder control when action plan tasks are created?
No. displayOrder controls presentation. Dependencies and creationType govern sequencing and creation timing; previousTemplateItem identifies the prerequisite and templateItem identifies the dependent item.
What permissions and license are required for action plan templates?
Creating or accessing templates requires the Customize Application permission and the IndustriesActionPlans license.
Is ParentTemplateId a developer name?
No. ParentTemplateId is a parent ActionPlanTemplate record ID. It is separate from the metadata component's fullName and the template's uniqueName.
Why can't I create a custom quick action or button on ActionPlanTemplate?
A 2024 community report attributed these failures to runtime-object customization limitations, not missing permissions, and reported Salesforce Support confirmation. The reported restriction concerns custom actions, buttons, and links on the object, not template metadata deployment.