Salesforce administrators can use Validation Rules on the Lead object to enforce data quality standards before a record is saved. This article covers two common use cases: (1) requiring an email address and phone number before a Lead can be converted, and (2) in Salesforce Essentials Edition, preventing users who don't own a Lead record from editing it. A Validation Rule contains a formula that evaluates field data and returns True or False — when True, the rule blocks the save and displays a configurable error message.
A common use case is when a Lead record may initially be created without an email address or phone number, but these fields must be populated before the Lead is converted. To enforce this requirement, you can create a Validation Rule by following the steps below:
Enter the following formula in the Error Condition Formula field:
AND(
IsConverted,
OR(
ISBLANK(Phone),
ISBLANK(Email)
)
)
In Salesforce Essentials Edition, where Sharing Rules are not available, Validation Rules can be used to restrict record editing.
For example, to allow only the Lead Owner or a System Administrator to edit a Lead record, create a Validation Rule and use the following formula:
AND(
NOT($Profile.Name = "System Administrator"),
NOT($User.Id = OwnerId),
NOT(ISCHANGED(OwnerId))
)
Complete the remaining steps (such as adding an error message and selecting the error location) as described above to finalize the rule.
000389965

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.