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
AmbigaRamAmbigaRam 

counting email messages in case?

Hi,

 

I  wrote the email handler to append the inbound emails based on case number to the case.

 

I want to count the emails in the parent case. I cant use rollup summary field because case object is not parent.

 

Can anybody help me to count the number of email messages in case.

 

 

Thanks.,

Ambiga

SfdcStevenSfdcSteven

It's not available without writing apex triggers on the email message object to manage the counts.  

 

Here is the idea exchange item for having it be declarative.

https://success.salesforce.com/ideaView?id=08730000000BrYNAA0

 

Sorry,

-Steven