Discover how to disable email notification: Your Content Delivery Has Been Viewed when a file is first viewed or downloaded by any user, whether public or internal. This guide will help you control alerts and reduce email clutter
The diagram below describes how files are stored in the database, as well as how public links to files stored in Salesforce are generated.
In situations where we want to share files with external or public users who don't have access to Salesforce, we can generate a public link and share it with those users. Each public link generated for a file corresponds to a record in the ContentDistribution object in Salesforce. Whenever a user previews or downloads the content for the first time, we get the following email notifying us about the action taken by the user:
To stop receiving these emails, we need to set PreferencesNotifyOnVisit to False. PreferencesNotifyOnVisit is a standard field on the ContentDistribution object which controls whether the owner of the shared document is notified via email whenever an external or public user views or downloads the document.
There are multiple ways to disable this email alert:
The following are the steps for disabling the email alert notification option via Salesforce Classic.
On the Record Detail Page, navigate to the Files detail page under Notes & Attachments for the file you want to disable the alert for.
Click on the Screenshot link.
Click on the Go to Content Detail Page option.
Click on the Deliver Content button.
Uncheck the Notify Me of First View or Download option and click Save.
When using Lightning Flow, depending on your business use case, you can add an Update Records element and set the object to ContentDistribution. The record for which you want the notification disabled can be identified using ContentDistribution, ContentDocumentId, ContentVersionId, or whatever conditions you set in the Update Records element. Then, set the PreferencesNotifyOnVisit field to {!$GlobalConstant.False}.
When using Apex code, we first need to query the ContentDistribution object using the appropriate conditions, then programmatically set the value to False. Once set, we use a DML statement to update the record and disable the email alert.
Written by: Meghesh Shenoy | Forum Ambassador. Meghesh Shenoy is a MuleSoft Ambassador and a Salesforce Forum Ambassador. He is a MuleSoft and Salesforce Certified Developer, carrying the knowledge of building automation solutions using Salesforce and MuleSoft. Meghesh is passionate about sharing knowledge and experience and also helping others sharpen and grow their MuleSoft & Salesforce skills together.
## Disclaimer
Submissions reflect only the opinions of the user who made available the Submission and not the opinions of Salesforce, regardless of whether the user is affiliated with Salesforce, and may contain or constitute products, services, information, data, content and other materials made available by or on behalf of third parties ("Third Party Materials"). Salesforce neither controls nor endorses, nor is Salesforce responsible for, any Third Party Materials, including their accuracy, validity, timeliness, completeness, reliability, integrity, quality, legality, usefulness or safety, or any applicable intellectual property rights. Any Submissions made available through any message board or forum in response to posted questions, or that otherwise purports to answer any questions, including any questions about Salesforce or Programs, are made available for your general knowledge only and should never be relied upon as answers to your specific questions (even if an answer is marked as a "best" answer or with any similar qualifications). You should always contact Salesforce support for answers to your specific questions. Salesforce has no control over Submissions, and is not responsible for any use or misuse (including any distribution) by any third party of Submissions.
If you have questions, tap into the wisdom of our entire Trailblazer Community here: https://trailhead.salesforce.com/trailblazer-community/feed
Salesforce Content - Content Deliveries vs Public Links
Salesforce Content Distribution: Share Files Externally Using a Public Link
Disable Email Notifications for Chatter File Sharing in Salesforce
003600217

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.