In Salesforce, users may find that searching for a partial value of a field does not return the expected results. This behavior is related to how Salesforce tokenizes data during the search indexing process.
Tokenization is the process by which Salesforce breaks field values into smaller segments (tokens) that are stored in the search index. Only full tokens — not arbitrary substrings — match search queries by default.
Important note: If a search query contains punctuation or special characters, try replacing the punctuation with white spaces. Also, tokenization behavior may differ by field type. For example, a phone number in a dedicated Phone field may be tokenized differently from the same number stored in a Chatter post.
Example scenario:
A car dealership representative needs to search for a customer record using the last 4 digits of a Vehicle Identification Number (VIN). The full VIN stored in the system is 1HGBH41JXMN109186.
Salesforce tokenizes this value as:
| Indexed Term | Valid Search Tokens |
| 1HGBH41JXMN109186 | 1HGBH41JXMN109186 |
| HGBH | |
| 41 | |
| JXMN | |
| 109186 |
When the representative searches for 9186 (the last 4 digits), no results appear. Appending a leading wildcard — such as *9186 — also does not return the expected record. Leading wildcards are only supported in Standard Lookups, which are available in Salesforce Classic UI only.
To return the correct record, the representative must use one of the valid tokens listed above.
000383915

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.