PathAssistant defines a Salesforce Path for an object and record type. It binds the path to a picklist that supplies its stages and stores the fields and guidance configured for individual steps. The picklist defines the stages; PathAssistant defines their configured presentation and guidance.
A path's component name, label, and record-type binding serve different purposes. The inherited fullName identifies the metadata component, masterLabel supplies its label, and entityName, fieldName, and recordTypeName establish where the path applies.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Inherited metadata component identity. It does not replace the object-and-record-type binding. |
active |
Whether the individual path is active: true or false. This is separate from the Path enablement preference. |
entityName |
Required object binding. For a custom object, explicitly specify its API name. This element is not updateable. |
fieldName |
Required picklist field that determines the path's steps. For a custom-object path, explicitly specify that picklist field. This element is not updateable. |
masterLabel |
Required label of the path. |
recordTypeName |
Required name of the record type associated with the path. This element is not updateable. |
pathAssistantSteps |
Repeated step configurations containing displayed fields and guidance. This collection does not necessarily include every existing stage. |
picklistValueName |
Required within each step. Identifies the picklist value associated with that step. |
fieldNames |
Repeated within a step to select fields from entityName for display as key fields. These are distinct from the stage-defining fieldName. |
info |
Guidance information displayed for the step. |
Behavior and Constraints
Only one path can be created per record type for each object, including the __Master__ record type. Choosing a different picklist does not allow a second path for the same object and record type.
The binding elements entityName, fieldName, and recordTypeName are all non-updateable. An existing path cannot be retargeted to another object, stage-defining field, or record type through an in-place update to these elements.
pathAssistantSteps contains the steps whose fields and guidance have been configured. If a step is absent from the metadata file, its content has not been configured; the omission does not mean that the stage or underlying picklist value does not exist. Removing or omitting a step configuration must not be interpreted as deleting a picklist value.
The distinction between fieldName and fieldNames matters when diagnosing problems. The singular element selects the picklist that defines the stages. The repeated plural element selects fields displayed within an individual step, including fields that are not picklists.
Deployment and Retrieval
PathAssistant components use the .pathAssistant suffix and are stored in the pathAssistants folder. In package.xml, use PathAssistant as the metadata type name. The type supports the wildcard * for selecting members.
The Path enablement preference does not have to be on to retrieve or deploy PathAssistant. Transporting the metadata, activating an individual path through active, and making it visible to a particular user are separate considerations. A successful deployment alone does not establish that a user can view the path.
Rich text guidance information cannot be retrieved from or deployed to Translation Workbench, Salesforce's translation-management feature. Transporting the PathAssistant configuration should not be treated as transporting that guidance through the translation mechanism.
Deployment failures can involve the destination's stage-defining picklist values or record-type configuration, rather than the fields displayed within a step. The reported cases below include change-set failures caused by mismatched picklist values and loading failures resolved by moving additional record-type and layout configuration. They do not establish a universal component list or deployment order.
Relationships
The references are centered on the object identified by entityName. Changing the stage-defining picklist affects step associations through picklistValueName; changing a displayed field affects the content configured for particular steps. These references do not establish a mandatory deployment sequence.
References
-
CustomObject:entityNameidentifies the object represented by this metadata type. -
CustomField:fieldNameidentifies the stage-defining picklist;fieldNameswithin each step identifies displayed fields belonging toentityName. -
RecordType:recordTypeNameidentifies the associated record type.
Reported Issues
- Missing field read access can prevent a user from viewing a deployed path. In a 2020 report, the message "You cannot view this Path. Contact your Salesforce administrator for help." occurred because the affected user's profile lacked read permission for fields used on the path. Granting read access restored visibility. This is one reported cause of the message, not an exhaustive explanation. Field-access report.
-
A displayed dependent picklist may need its controlling field in the same Key Fields area. In a 2018 report, a dependent picklist offered only its current value and
--None--. Adding its controlling field to the Path's Key Fields area resolved the problem. This concerns editing a displayed dependent field, not selecting the stage-definingfieldName. Dependent-picklist discussion. -
Redeploying the stage-defining picklist resolved a "Required fields missing: [PicklistMasterId]" deployment error. A 2018 report reached this resolution after troubleshooting with Salesforce support. The error should not be taken to mean that a field listed in
fieldNamesmust itself be a picklist. Picklist deployment discussion. -
Mismatched destination picklist values can also cause the reported
PicklistMasterIdfailure. In a 2019 change-set report involving a custom object without record types, the stage-defining picklist had been omitted from the change set. Aligning the destination values with the source allowed deployment. Change-set value-mismatch report. - Moving record-type and page-layout configuration resolved one path-loading failure after transport. In a 2019 report, the Stage field had not been included in that configuration when the destination sandbox was created. Adding Record Type and Page Layout components to the change set resolved the issue. This does not mean that every path deployment requires those components. Record-type and layout report.
-
Removing duplicate manifest entries resolved an Opportunity path deployment failure. A 2020 report associated "java.lang.IllegalStateException: Programmer error:" with duplicate
PathAssistantentries introduced while merging manifests. Removing the duplicates resolved that case. Duplicate-manifest report. - Deploying the path alone resolved another Opportunity deployment failure with the same exception. In a 2019 support-guided workaround, the user first deployed all other components, then deployed only the path. The combined deployment continued to fail. This was a reported workaround for that case, not a general requirement to deploy paths separately. Separate-deployment report.
Common Questions
Can I create two paths for the same object and record type using different picklists?
No. Only one path can be created per object and record type, including __Master__. A different stage-defining picklist does not allow a second path for that binding.
Can I change a PathAssistant's object, picklist, or record type by deployment?
Not through an in-place update. entityName, fieldName, and recordTypeName are non-updateable.
Why are some stages missing from retrieved PathAssistant metadata?
pathAssistantSteps contains configured step content, not necessarily every stage. An omitted step means its fields and guidance have not been configured; it does not mean the underlying picklist value is missing or deleted.
Does Path have to be enabled before I retrieve or deploy PathAssistant?
No. The Path enablement preference does not have to be on for retrieval or deployment. Successful transport does not by itself establish that the path is active or visible to a user.
What should I inspect for a PathAssistant PicklistMasterId deployment error?
Inspect the stage-defining picklist named by fieldName and its destination values. Reported resolutions included redeploying that picklist and aligning destination values with the source after the field was omitted from a change set.