Loading

Email Messages Not Visible to Community Users in Record Feed

Publiceringsdatum: May 29, 2025
Beskrivning

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.
Lösning

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-artikelnummer

004867920

 
Laddar
Salesforce Help | Article