In Salesforce, Attachments and Files are two separate features. Attachments are the legacy document storage method used in Salesforce Classic. Salesforce Files is the modern, more robust replacement introduced with Lightning Experience.
When you search for a document in Salesforce Lightning Experience that was originally uploaded as an Attachment in Salesforce Classic, the document does not appear in Lightning search results. This is expected behavior because Attachments are deprecated in Lightning Experience and are not indexed for search within the Lightning interface.
Key distinctions:
Note: The Attachments discussed in this article refer to files that have been manually uploaded to records via the Attachments related list, not email attachments from Email-to-Case.
Lightning Experience users can still view legacy Attachments on individual records, even though Attachments do not appear in Lightning global search results. To view them:
For organizations that have users in both Lightning Experience and Salesforce Classic, Salesforce recommends enabling the setting: "Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments."
Enabling this setting ensures that any new files added to records are uploaded as Salesforce Files, making them searchable in Lightning Experience going forward.
Steps to enable:
Important: This setting only applies to files uploaded after it is enabled. Files uploaded as Attachments before enabling this setting remain as legacy Attachments.
To locate Attachments that were added before enabling the Files setting, users need to temporarily switch to Salesforce Classic and search there:
For attachments received through the Email-to-Case feature specifically, see the related article: Attachments in Email-to-Case Not Getting Attached to the Created Case Record.
Using Salesforce Files
Attachments in email-to-case not getting attached to the created case record
Files are uploaded as Salesforce Files and not as Attachments
Before enabling the enhanced note-taking tool Notes and using Files
000382146

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.