ApprovalProcess defines how Salesforce records are submitted, routed, approved, rejected, and recalled. It combines record eligibility rules, an ordered chain of approvers, record-locking settings, and references to workflow actions. It is the configuration definition, not an individual approval request or approval-history record.
Each component belongs to an object and uses the name pattern <objectName>.<componentName>. Approval steps, approver assignments, criteria, and action references are nested within that component; they are not separate ApprovalProcess components.
Key Elements
| Element | What the Element Controls |
|---|---|
active |
Required. Activates or deactivates the process. Activation permanently restricts structural changes, even after deactivation. |
allowedSubmitters |
Required. Identifies who may submit records through nested type and submitter values, independently of record eligibility. |
entryCriteria |
Controls admission to the process or a step. Use criteriaItems with optional booleanFilter, or formula, not both. |
approvalStep |
Defines the ordered approval chain, with up to 30 steps. Each step has its own criteria, approvers, actions, and allowDelegate setting. |
assignedApprover |
Contains up to 25 approver entries per step. whenMultipleApprovers is Unanimous, the default, or FirstResponse. |
ifCriteriaNotMet |
Handles step-criteria failure: ApproveRecord, RejectRecord, or GotoNextStep. RejectRecord is available only on the first step. |
rejectBehavior |
Handles an approver's rejection on later steps. Its type is RejectRequest or BackToPrevious. It is required after the first step and is not allowed on the first step. |
nextAutomatedApprover |
Defines the userHierarchyField used for hierarchy routing and whether the first executed step starts from the owner's or submitter's user record. |
enableMobileDeviceAccess |
When true, permits access to an external approval page without logging in and prohibits adhoc approvers. When false, approvers must log in. |
recordEditability |
Controls editing while approval is pending: AdminOnly or AdminOrCurrentApprover. |
finalApprovalRecordLock, finalRejectionRecordLock
|
Control whether the record remains locked after its final outcome. Both default to false. |
allowRecall, recallActions
|
Control submitter withdrawal of pending requests and the workflow actions run on withdrawal. If allowRecall is false, only administrators can recall requests. |
action |
A nested workflow action reference. Its name and type identify an action defined elsewhere; they do not embed that action's definition. |
emailTemplate, postTemplate
|
Select the Classic approval-request email template and the Approvals in Chatter post template, respectively. They serve different notification channels. |
approvalPageFields, showApprovalHistory
|
Select fields and the Approval History related list for the approval page. They do not configure record detail or edit page layouts. |
Behavior and Constraints
Activation and step order
After a process has been activated, you cannot add, delete, or reorder its steps, or change its reject or skip behavior. Setting active to false does not remove these restrictions.
The order of approvalStep entries determines execution order. This is separate from the order in which Salesforce evaluates multiple active approval processes for an object.
Submission eligibility and criteria
allowedSubmitters controls who can submit; process-level entryCriteria controls which records qualify. Meeting one does not replace the other.
Supported submitter type values are group, role, user, roleSubordinates, roleSubordinatesInternal, owner, creator, partnerUser, customerPortalUser, portalRole, portalRoleSubordinates, and allInternalUsers. The submitter value is required except for owner, creator, and allInternalUsers, where it is ignored.
Process-level criteria determine admission to the process; step-level criteria determine admission to that step. At either scope, choose filter criteria or a formula. booleanFilter combines criteriaItems and must be omitted when using formula. Although the shared filter structure exposes valueField, approval-process criteria do not support it.
Skipped steps and rejected requests
A record can reach a final outcome because it fails step criteria, without an approver making a decision. The step's ifCriteriaNotMet controls this path:
-
ApproveRecordapproves the request and executes all final approval actions. -
RejectRecordrejects the request and executes all final rejection actions. Only the first step can use this value. -
GotoNextStepskips to the next step. If the first step uses this value and the record meets no later step's entry criteria, the record is rejected.
An approver rejecting a request follows a different path. The first step does not allow rejectBehavior; its rejection uses the process's final rejection actions. Later steps require rejectBehavior:
-
RejectRequestrejects the request despite earlier approvals and runs both the rejecting step's rejection actions and all final rejection actions. -
BackToPreviousreturns the request to the previous approver and runs the rejecting step's rejection actions.
Approver routing and delegation
Each step supports up to 25 approvers. With multiple approvers, Unanimous requires every approver to approve; any rejection rejects the request for that step. FirstResponse uses the first approval or rejection response.
The nested approver's type determines the meaning of name:
-
user: supply a username, not a user record ID. -
queue: supply the queue name. -
relatedUserField: supply the name of a user lookup field on the submitted record. -
adhoc: omitname. The submitter selects the first step's approver. For later steps, the preceding step's approver selects the next approver. -
userHierarchyField: omitname. Routing uses the process-levelnextAutomatedApproverconfiguration.
Without nextAutomatedApprover, no step can use userHierarchyField routing. When configured, both userHierarchyField and useApproverFieldOfRecordOwner are required. If useApproverFieldOfRecordOwner is true, the first executed step reads the selected hierarchy field from the record owner's user record; otherwise, it reads the submitter's user record. Remaining steps read that field from the preceding step's approver. "First executed" matters when earlier steps are skipped.
Related-user and hierarchy routing depend on actual field values. The metadata defines how Salesforce finds an approver, not necessarily which user will receive a particular request.
allowDelegate permits the assigned approver's appointed alternate to respond at that step. A user having a configured delegate does not, by itself, allow delegation at every step.
Record locking and authentication
Submission automatically locks the record. With recordEditability set to AdminOnly, users with "Modify All Data" or the object's "Modify All Records" permission can edit it while approval is pending. AdminOrCurrentApprover additionally permits the assigned approver, but that approver must already have edit access through user permissions and the object's organization-wide sharing defaults. Approver assignment does not grant edit access.
finalApprovalRecordLock and finalRejectionRecordLock control locking after the final outcome, not editability while approval is pending.
enableMobileDeviceAccess is an authentication setting, not just a mobile display preference. When true, approvers can open an external approval page from a browser without logging in to Salesforce, and no step can use an adhoc approver. When false, login is required.
Actions, notifications, and review pages
Process-level actions cover initial submission, final approval, final rejection, and recall through initialSubmissionActions, finalApprovalActions, finalRejectionActions, and recallActions. Step-level approvalActions and rejectionActions apply to decisions within the chain. Each contains workflow action references rather than action definitions.
emailTemplate selects the Classic email template for approval-request emails. Salesforce sends an email when the process assigns a request to a user. If the setting is omitted, Salesforce uses the default template. Classic templates are recommended for this setting; Lightning email templates are not packageable.
postTemplate controls Approvals in Chatter posts. Chatter post approval notifications require feed tracking on the associated object. The post-template setting and approval-request email setting are not interchangeable.
approvalPageFields controls fields on the approval page. By default, that page displays Name and Owner, except that Owner is not displayed for child objects. These fields can also be visible on mobile devices when mobile notifications are enabled. showApprovalHistory adds the Approval History related list to the approval page only; record detail and edit page layouts require separate customization.
Deployment and Retrieval
Components use the .approvalProcess suffix and reside in the approvalProcesses folder. The full component name follows <objectName>.<componentName>. Preserve namespaces and the full name when identifying a process. Approval processes can be deployed through the Metadata API and included in change sets.
Omitting process-level entryCriteria has different effects on creation and overwrite. A new process without it has no record-entry filter. When overwriting an existing process that has entry criteria, omission does not clear the destination criteria: Salesforce applies the existing criteria to the deployed process.
Each step requires a label and a name. The step name must be unique within its process, begin with a letter, and contain only alphanumeric characters and underscores. It cannot contain spaces, end with an underscore, or contain consecutive underscores. The process itself also requires label.
Referenced workflow actions must be available in the destination. An action reference does not deploy its definition. Deployment scope depends on the actions actually named, not every action type exposed by the shared workflow schema. For example, a missing field update can require including its workflow definition rather than changing the approval step.
For Salesforce Knowledge article approval processes, the article type must be deployed. Article-version objects ending in _kav support Knowledge Action, Email Alert, Field Update, and Outbound Message actions. Send actions and approval processes for email drafts are not supported by the Metadata API, even though Send appears in the shared workflow-action enumeration.
In package.xml, the member wildcard * retrieves approval processes across all objects. Object-prefixed subset wildcards such as Lead.* are not supported; use full component names for selected processes. See the ApprovalProcess Metadata API reference.
Relationships
Dependencies depend on the context of each reference. A workflow action's name, an approver's name, and an allowed submitter's submitter identify different things. Routing through record or user fields also depends on data values, not just deployed metadata.
References
-
CustomField:fieldin approval-page fields and criteria;formula;namefor arelatedUserFieldapprover;userHierarchyFieldfor a custom hierarchy field on User. -
CustomLabel:formulain process or step criteria. -
EmailTemplate:emailTemplate; also a recognized association throughpostTemplate, without making the email and Chatter roles interchangeable. -
PostTemplate:postTemplate. -
Group:submitter; also a recognizednameassociation. -
Role:submitter; also a recognizednameassociation. -
Queue:namefor an approver of typequeue. -
WorkflowAlert:namein a workflow action reference. -
WorkflowFieldUpdate:namein a workflow action reference. -
WorkflowOutboundMessage:namein a workflow action reference. -
WorkflowTask:namein a workflow action reference. -
WorkflowFlowAction:namein a workflow action reference, where applicable.
The recognized name associations for groups and roles do not add group or role to the supported approver type values.
Name-based association: CustomObject supplies the object context identified by the text before the first period in the component name. That context can be a standard or custom object. This naming association does not itself require both components to be deployed together or establish deployment order.
Documentation Inconsistencies
Salesforce's Metadata API documentation states that the order of active approval processes is not included in the metadata, while an exposed element schema includes processOrder. The presence of that element does not establish that deployment preserves active-process ordering. Destination processes can require reordering after deployment. This limitation is separate from step execution order, which follows the order of approvalStep entries.
Reported Issues
- A missing workflow-action error can mean an omitted dependency, not a malformed step. In a 2021 Account approval-process deployment, an answer identified the missing referenced field update as metadata that needed to be included. The approval process's action reference did not supply the definition. Missing field-update diagnosis.
- A queue-reference failure can require checking Supported Objects, even when the queue exists. A 2017 answer reported an incorrect supported-object assignment as the cause in its case. The original report described a child-object process whose queue supported the parent object: creation succeeded in the UI but failed through the API. The discussion does not establish that parent-object support resolves every child-object deployment case. Queue approver deployment discussion.
-
Retrieved metadata containing
PreviousApprovercan fail deployment. A report reproduced in March 2024 described this value while updating older processes, despite populated approvers in the UI.PreviousApproveris not a documented supported approver type. A contributor reported success replacing it with the actual named queue and typequeue. This is a conditional repair requiring verification of the intended routing, not a general replacement rule. PreviousApprover deployment report. -
A user's delegate setting may not answer whether a particular step permits delegation. A 2025 discussion reported difficulty determining that permission through approval runtime records. The suggested approach was to retrieve
ApprovalProcessmetadata and inspect the step'sallowDelegatevalue. Step delegation lookup discussion.
Common Questions
Can I edit approval steps after deactivating an approval process?
Not for the structural changes restricted by activation. Once activated, the process cannot have steps added, deleted, or reordered, or its reject or skip behavior changed. Deactivation does not remove those restrictions.
Why did deployment keep the destination approval process's entry criteria?
When a deployment omits process-level entryCriteria while overwriting a process that already has criteria, Salesforce retains and applies the destination criteria. Omission gives a new process no entry filter, but does not clear an existing process's filter.
How do I retrieve approval processes for one object?
Specify the full component names using <objectName>.<componentName>. The wildcard * retrieves processes across all objects; a subset wildcard such as Lead.* is not supported.
Why can't the assigned approver edit a record pending approval?
recordEditability must allow AdminOrCurrentApprover, and the approver must have edit access through user permissions and the object's organization-wide sharing defaults. Assignment as an approver does not grant that access.
Does deploying an approval process also deploy its workflow actions?
The process contains references to actions, not their definitions. Referenced action definitions must be available in the destination or included in the deployment. A missing workflow-action error can therefore indicate an omitted dependency.