---
schema_version: "1"
id: 7a53f8b6709abd0a50dfa08e140ae1b3d87cd1c6e092745ff9d5f00257a34fc8
title: Emails in the Site Case Feed
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/ccf_expose_case_emails.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.ccf_expose_case_emails.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 97f384e90b9c35f41460565d148c55acc9839af26985985baabfa0fbf449378d
description: When you enable the site case feed for Aura and Salesforce Tabs + Visualforce, external users with access to a case see case emails in their feed. Emails in the site case feed include the email’s author, recipients, text, and time sent.
products:
  - Experiences
release: "264"
---
# Emails in the Site Case Feed

When you enable the site case feed for Aura and Salesforce Tabs + Visualforce, external users with access to a case see case emails in their feed. Emails in the site case feed include the email’s author, recipients, text, and time sent.

By default, if the case contact sends or receives a case email, that email appears in the feed of all users—both internal and external—with access to the case. For an external user to view the case, their profile must include access to cases in the site.

For example, suppose Rita, an external user, posts a question. The question remains unresolved, and a moderator creates a case from it using the Question-to-Case action. If the support agent assigned to the case emails Rita from the email publisher, Rita and all other users with access to the case see the email in their case feed. Users with access to a case typically include the assigned support agent and the case contact.

## Using Apex to Show or Hide Emails in the Case Feed

The IsExternallyVisible field of the EmailMessage object controls the visibility of email messages in the site case feed. When the field is set to `true`, emails sent or received by the case contact are visible to external users with access to the case.

If the site case feed is enabled, you can write an Apex trigger or process to hide or expose all case emails in the feeds of external site users. First, create an Apex class with a Future method to update the IsExternallyVisible field. Then, create a trigger on EmailMessage and pass the EmailMessage objects into the method on insert/update in the After context.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_important.png)

Important If the IsExternallyVisible field isn’t selected on an email and the email’s default visibility is set to true, you can’t use the Before context of an Apex trigger to set IsExternallyVisible to false.

#### See Also

- [Emails in the Site Case Feed](https://help.salesforce.com/s/articleView?id=experience.ccf_expose_case_emails.htm&release=264.0.0&type=5 "When you enable the site case feed for Aura and Salesforce Tabs + Visualforce, external users with access to a case see case emails in their feed. Emails in the site case feed include the email’s author, recipients, text, and time sent.")
- [Site Case Feed](https://help.salesforce.com/s/articleView?id=experience.ccf_overview.htm&release=264.0.0&type=5 "With the site case feed, agents and Experience Cloud site members see the lifecycle of a case from start to finish. All case interactions appear in a unified, chronological Chatter case feed. Site members benefit from the added functionalities of Chatter, while service features help agents provide efficient, personalized support. To use Site Case Feed, Chatter must be turned on in your org.")

## Expose or Hide a Published Post or Email in the Site Case Feed

When necessary, support agents can expose or hide individual case emails and published Chatter posts in the case feed of Aura and Salesforce Tabs + Visualforce site users.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d62113e99">User Permissions
                  Needed</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d62113e99 ">To edit the external visibility of a published Chatter post or email on a case: </td>
                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d62113e99 ">
                  <ul>
                    <li>Edit My Own Posts</li>
                    <li>Edit Posts on Records I Own</li>
                    <li>Compact case feed enabled in your org</li>
                    <li>Site case feed enabled in your org</li>
                  </ul>
                </td>
              </tr>
            </tbody>
          </table>

To change the external visibility of a published Chatter post or email on a case:

1. Navigate to the post or email in the compact case feed.
2. In the post or email’s dropdown menu:
    - Select **Make Public** to expose an internal Chatter post or email in the case feed of external users with access to the case
        
        The case contact and any other external users with access to the case now see the post or email in their case feed. An agent might choose to make an email or post in the site case feed public in order to keep the case contact updated about internal progress on the case.
    - Select **Make Private** to remove a Chatter post or email from the case feed of external users with access to the case
        
        The case contact and any other external users with access to the case no longer see the post or email in their case feed. (It still appears in the feeds of internal users with access to the case.) An agent can choose to make an email or post in the site case feed private if they want to hide their correspondence with the case contact from the case feed of other external users with access to the case. Keep in mind that when you make an email private, the email recipients already received the email. Similarly, when you make a Chatter post private, external users with access to the case may have been notified by email when it was first posted.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_example.png)

Example

**Make Public** option on a case Chatter post:

![Make Public option](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/ccf_make_public.png)

**Make Public** option on a case email:

![Make Public on email](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/ccf_make_public_email.png)

The agent who owns the case and those above them in the hierarchy see the **Make Public** and **Make Private** options on all case emails and Chatter posts on the case. Internal users who don’t own the case also see these options on case posts or emails that they wrote.