Validation rule examples for numeric account numbers, account number length, and
annual revenue range.
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Contact Manager, Group, Professional,
Enterprise, Performance, Unlimited, Developer,
and Database.com Editions |
Account Number Is Numeric
|
Description:
|
Validates that the Account Number is numeric if not
blank. |
| Formula: |
|
| Error Message: |
Account Number is not numeric. |
| Error Location: |
Account Number |
Account Number Length
|
Description:
|
Validates that the Account Number is exactly seven
digits (if it is not blank). The number seven is simply illustrative. You
can change this to any number you like. |
| Formula: |
|
| Error Message: |
Account Number must be seven digits. |
| Error Location: |
Account Number |
Annual Revenue Range
|
Description:
|
Validates that the account Annual Revenue is not
negative and does not exceed $100 billion. This limit is designed to catch
typos. |
| Formula: |
|
|
Error Message:
|
Annual Revenue cannot exceed 100 billion. |
| Error Location: |
Annual Revenue |