You need to sign in to do that
Don't have an account?

trigger to get the total number of close cases per contact
Hi all,
I cannot create a Roll-Up Summaryfield on Contats to see the total of close cases in the contact detail page.
Any sample code for this?
Tank you
Please find the below link for sample code regarding creating the custom roll-up summary
http://www.anthonyvictorio.com/salesforce/roll-up-summary-trigger/
I managed to create this but still got an error:
Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST<Case> at line 32 column 27
Thanks!
Error is because of this csIds.add(cas.Id); // Cas is an array