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 |
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.