Loading

Email Messages Not Visible to Community Users in Record Feed

게시 일자: May 29, 2025
상세 설명

Root Cause:

Salesforce controls visibility of EmailMessage records for external (Community) users through the IsExternallyVisible flag.

  • If IsExternallyVisible = false, external users cannot view the email in the feed.
  • This setting is designed to protect internal communication by default.
솔루션

You need to set the IsExternallyVisible flag to true on the relevant EmailMessage records to make them accessible in the community feed.

This can be done either via Anonymous Apex execution in the Developer Console or by writing an Apex Trigger to set it automatically.

-----------------------------------------------------------------------------------------

Option 1: Fix via Anonymous Apex for existing records

Use this if you want to manually make existing emails visible.

List<EmailMessage> lstEmt = [

    SELECT Id, IsExternallyVisible 

    FROM EmailMessage 

    WHERE RelatedToId = 'RECORD_ID_HERE'

];

 

for (EmailMessage emt : lstEmt) {

    emt.IsExternallyVisible = true;

}

update lstEmt;

Replace 'RECORD_ID_HERE' with the actual Contact or Object record ID.

------------------------------------------------------------------------------------

Option 2: Write a trigger using the above code snippet

Knowledge 기사 번호

004867920

 
로드 중
Salesforce Help | Article