ExpressionSetObjectAlias defines an alias for a source object used in an expression set and maps source fields to field aliases. It is a separate metadata component: fullName identifies the alias component, while objectApiName identifies the source represented by that alias.
The source can be a Salesforce object or a JSON object. The required top-level dataType determines which meaning applies. In particular, a JSON object's key is not a Salesforce object reference.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the alias metadata component. Inherited from Metadata; distinct from the source identified by objectApiName. |
dataType |
Required at the top level. Allowed values are JSON and sObject. Determines how to interpret objectApiName. |
objectApiName |
Required. For sObject, the API name of the top-level Salesforce object. For JSON, the key of the top-level JSON object. |
mappings |
Repeated ExpressionSetObjectAliasField entries that pair source fields with field aliases. |
fieldAlias |
Required within each mapping. Names the alias associated with the source field. |
sourceFieldName |
Required within each mapping and unique within the object alias. For an sObject alias, it can be a relationship path rather than a direct field name. |
dataType within mappings
|
Uses a different enumeration from the top-level element. Values include Text, Numeric, Currency, and Sobject. The nested Sobject value has different capitalization from top-level sObject. |
usageType |
Required application context. Documented values are Bre, GpaCalculation, InsuranceClaimProcessing, ItServiceManagement, PlanCostCalculation, RatingDiscovery, StudentInformationSystem, and StudentSuccess. |
Behavior and Constraints
Interpret objectApiName together with the top-level dataType. With sObject, a value such as Account identifies the root Salesforce object. With JSON, the value identifies a top-level JSON key; it does not establish a dependency on a Salesforce object with that name.
Each mapping must supply both fieldAlias and sourceFieldName. The uniqueness constraint applies to sourceFieldName within the alias.
For an alias rooted at Account, mappings can use paths such as CreatedBy.Contact.Name, CreatedBy.Name, and Owner.Contact.Name. These paths traverse relationships from the root object. When assessing the impact of a field change, follow the relationship path rather than treating every mapping as a direct field on Account.
Keep the two dataType value sets separate. Top-level sObject describes the source format; nested Sobject belongs to the mapping's data-type enumeration. They are not interchangeable spellings.
When Business Rules Engine is enabled, Bre is the default usageType. Other usage types depend on the industry solution and permission sets available in the org. The documented value list does not mean every destination org can use every value. An exposed schema enumeration that lists only Bre is narrower than the documented platform value set and must not be treated as a platform-wide restriction.
Deployment and Retrieval
ExpressionSetObjectAlias components use the .expressionSetObjectAlias suffix and reside in the expressionSetObjectAlias folder. In package.xml, use ExpressionSetObjectAlias as the type name. The type supports * in the manifest's members element. See Deploying and Retrieving Metadata with the Zip File.
When preparing a deployment, distinguish the alias component's identity from its source object, preserve the required fields and unique source-field mappings, and account for the destination org's supported application context. Object and field connections identify potential dependency impact; they do not establish actual use by an expression set or a mandatory deployment sequence.
Relationships
For sObject aliases, the root object and mapped fields provide the relevant schema connections. Relationship-based mappings can involve fields beyond the root object. These connections describe potential dependencies, not proof that a particular expression set uses the alias.
References
-
CustomObject:objectApiName, when the top-leveldataTypeissObject. -
CustomField:sourceFieldNamewithinmappings; relationship paths must be interpreted relative to the root object.
Common Questions
Is an ExpressionSetObjectAlias named after its source object?
fullName identifies the alias component. objectApiName identifies the source, so the two serve different purposes.
Can sourceFieldName reference fields on related objects?
Yes. For an sObject alias rooted at Account, a mapping can use a path such as CreatedBy.Contact.Name. Interpret the path from the root object rather than as a direct field name.
Why does one dataType use sObject and another use Sobject?
The top-level and mapping-level elements use different enumerations. Top-level dataType accepts JSON or sObject; the mapping enumeration includes Sobject alongside values such as Text and Numeric.
Can every org use all documented usageType values?
No. Availability depends on the industry solution and permission sets. Bre is the default when Business Rules Engine is enabled, but a schema listing only that value does not define the complete platform value set.
Can I retrieve ExpressionSetObjectAlias with a wildcard?
Yes. Use ExpressionSetObjectAlias as the type name and * as the member in package.xml.