Create Feed Items for Archive Emails
For customers running Enhanced Email, the Case activity feed is where your users live. Every email message appears as an entry in Recent Activities. When Email Scrubber archives an email, that feed entry is removed along with the EmailMessage record, leaving a gap in the Case history.
For those clients, Email Scrubber can create a feed post at archive time. The post references the newly created archive record, effectively replacing the feed entry that existed for the live email message, so the Case timeline continues to tell the full story after archiving.
This feature is shipped as inactive by default. To enable it, set the Create Feed Items option to true on the Declutter Setup metadata record.
⚠️ Before Activating
⚠️ Preserving activity order: if the running user has the Set Audit Fields upon Record Creation permission (and the org-level setting of the same name is enabled), Email Scrubber sets the feed post's creation date to the original email's message date. This keeps the post in its correct chronological position in the activity feed. Without the permission, posts are still created, but carry the date of the archive run rather than the original email date.
⚠️ Feed Items: The running user must have access to create Feed Items.
Declutter CMDT Setup
Once activated, new feed items will be created using the Feed Item Title and Feed Item Archive Body settings defined on the Declutter Setup metadata record.
The title is static text applied to every post. The body is driven by a field on the EmailMessage object. By default, Email Scrubber ships with a formula field that summarizes the archived email. If desired, you can create your own formula field on EmailMessage and reference its API name in the Feed Item Archive Body API Field Name setting. Because the field is evaluated at archive time, your formula can reference any EmailMessage data (subject, sender, message date, direction), and the computed text is preserved in the feed post after the original email is deleted.

