Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

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

게시 일자: Oct 8, 2026
상세 설명

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.

솔루션

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 기사 번호

005460239

 
로드 중
Salesforce Help | Article