You need to sign in to do that
Don't have an account?
luck.sfdc
trigger
i have a custom field in account object called count.it should display the number contacts related to that account....like if we added one contact to the account count should be increased or if contact is deleted contact should be decreased..
how to write a trigger to this...
Thanks in advance
Just put your custom field(Which is on Account Object to count No Of Contact) name on place of ContactCount__c
All Answers
Luck,
Basically you are looking for Roll up summary Trigger,please go through the below link for the same :-
http://www.anthonyvictorio.com/salesforce/roll-up-summary-trigger/
Just put your custom field(Which is on Account Object to count No Of Contact) name on place of ContactCount__c
Thank you so much ...
if u put some comment lines that makes so much helpful to us...
anyway that's good solution .once again thanks brother
can u provide test class for this