function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michelle SotoMichelle Soto 

How i can create EmailMessage register in Chatter component of a custom object?

At de moment we are implement a Email Service in a custom object where we want to received and reply emails but, when we create a EmailMessage register in the Apex class, the register in the chatter component from custom object appear like a task. We want that the EmailMessage register appear like in the Case object.
 
EmailMessage register in Case object:
User-added imageEmailMessage register in the custom object:
User-added image

We want to in the custom object appear the EmailMessage register like in the Case object.
 
How can we solve it?
What are the best prectices?