Building Cross-Object Formulas in the Simple Formula Tab
To create a cross-object formula when building a formula in the Simple Formula tab,
enter the relationship names of the objects to which you are spanning followed by the field you
want to reference. Separate the relationship names of each object and the field with
periods.
Required Editions
Available in: both Salesforce Classic and Lightning Experience
Available in: All Editions
User Permissions
Needed
To create or change cross-object formulas:
Customize Application
Example
For example, enter Contact.Account.Name to reference
the Account Name for a contact associated with a case in a formula
field on the Case object. Be sure to use the relationship names of the objects, not the
labels. Although the relationship name is often the same as the object name, it is
technically the field name of the relationship field.
To reference the parent account name from Account
object, the syntax is Parent.Name, not Account.Name. When referencing a custom object, add two
underscores and the letter r to its name. For example, Position__r.title__c references the Job Title field
(title__c) on a Position custom object.
Note If you create a formula that references a field on another object and display that
formula in your page layout, users can see the field on the object even if they don’t have
access to that object record. For example, if you create a formula field on the Case object
that references an account field, and display that formula field in the case page layout,
users can see this field even if they don’t have access to the account record.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.