When a user logs an email to multiple Salesforce Contacts (belonging to the same Account) along with a related Opportunity record using the Outlook Integration add-in or Gmail Integration Chrome extension (with or without Salesforce Inbox enabled), the email may appear multiple times in the Activity History related list on the Opportunity and Account records.
The following observations are typical when this issue occurs:
When the Shared Activities feature (Allow Users to Relate Multiple Contacts to Tasks and Events) is not enabled in an organization, Salesforce creates a separate email task record for each Contact to which the email is logged. This results in duplicate entries appearing in Activity History on the Account and Opportunity.
This behavior occurs when the following settings are in place under Setup > Activities > Activity Settings:
When Shared Activities is enabled, an event or task can be related to up to 50 Contacts, creating a single email record in Salesforce instead of multiple records for each Contact.
Before enabling Shared Activities, review the considerations for your organization in the Additional Resources section.
If Shared Activities is enabled but duplicate emails still appear, the issue may be caused by custom automation (Triggers, Process Builder, Flows, etc.) on the Task object that prevents Task deletion.
When an email is logged to both a WhoId (Contact) and a WhatId (Account, Opportunity, Order, Contract, Campaign, or Custom Object), Salesforce standard logic inserts two or more Task records and then deletes one — keeping only a single Task that displays both the WhoId and WhatId. If a custom trigger or automation prevents this deletion, duplicate Task records remain.
To confirm whether duplicate Tasks are being created and retained, query the Task object using Workbench or Data Loader. Filter by the email subject and look for records where IsDeleted equals true with blank WhatId and WhoId values. A deleted record with blank IDs confirms that Salesforce's standard deduplication logic ran but a second copy was retained due to custom code.
Example query filter: Subject LIKE '%Email: Your Email Subject%' — all task records created from an EmailMessage have a Subject prefixed with "Email:" and a TaskSubtype of "Email". Modify any custom automation to exclude tasks with these field values to prevent unexpected behavior.
Enable Shared Activities
Considerations for Enabling Shared Activities (Multiple Contacts on an Activity)
000384862

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.