Loading

Email Task Re-creation and OwnerId Inheritance in Salesforce Email Messages

Julkaisupäivä: Oct 8, 2026
Kuvaus

In Salesforce, Tasks are tied to their related EmailMessage records. Salesforce can regenerate a Task whenever the EmailMessage is edited, resaved, or re-ingested after the ActivityId or related Task was deleted. The newly created Task is owned by EmailMessage.CreatedById. This is intended behavior.

Ratkaisu

This article answers why a Task associated with an EmailMessage reappears after you delete it, and what to do instead of deleting it.

How to Reproduce the Task Re-creation

  1. Choose an EmailMessage record with a deleted ActivityId (that is, its proxy Task was deleted).
  2. Update the EmailMessage.RelatedToId field manually (for example, with Workbench).
  3. Save the record.

Observe that Salesforce generates a new Task and repopulates EmailMessage.ActivityId with the Id of the new Task.

Why Deleting the Task Is Not a Sustainable Approach

Deleting the Task that the ActivityId on the EmailMessage points to is not a sustainable approach. Any EmailMessage resave can trigger Task re-creation with the OwnerId inherited from EmailMessage.CreatedById.

Recommended Approach: Use Task Restriction Rules

Instead of deleting proxy Tasks, use Task Restriction Rules to isolate proxy Tasks from visibility to all users. This avoids the deletion and re-creation cycle entirely, while still preventing users from seeing these system-generated proxy Tasks.

Knowledge-artikkelin numero

005460239

 
Ladataan
Salesforce Help | Article