Loading

Email Messages Not Visible to Community Users in Record Feed

Date de publication: May 29, 2025
Description

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.
Résolution

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

Numéro d’article de la base de connaissances

004867920

 
Chargement
Salesforce Help | Article