You are here:
Merge Field Syntax
A merge field’s syntax can vary depending on where you use the field. To make sure that you use the correct syntax, select merge fields from the dropdown list in the editor where you use the merge field.

Use more general search terms.
Select fewer filters to broaden your search.
A merge field’s syntax can vary depending on where you use the field. To make sure that you use the correct syntax, select merge fields from the dropdown list in the editor where you use the merge field.
| Available in: both Salesforce Classic and Lightning Experience |
| The available merge fields vary according to which Salesforce edition you have. |
Custom objects and fields are always appended with __c when referenced. The object precedes field labels, and all spaces
convert to underscores. For example, Account.CreatedDate references the Created Date
standard field for the account object.
In standard relationships, the name of the relationship is the master object. For
example, you can reference the account name from a contact validation rule using Account.Name. You can reference the phone number of the
account creator from an opportunity product formula field using Opportunity.Account.CreatedBy.Phone. In custom
relationships, the name of the relationship is the value specified in Field
Name with __r appended to it. For
example, you can reference contact email from a custom object validation rule using
Contact__r.Email.

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 are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security 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 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.