+ Start a Discussion
sree sfdcsree sfdc 

child records update to parent object and also count all the records?

hi floks
i have one requirment .in child object we create a record it ill update to parent record also
and it has to count all the records ..

pls help how to slove this ...
Go through the below community thread:

It has sample code which can customize as per your requiement.
sree sfdcsree sfdc
hi sonam,

thank u for quick rply.
i have count all the records how to do this ?
Do you mean - you wish to count the number of child records ? 
If yes, you can count the contacts related to the Parent by using the SOQL query by filtering the Child contacts using the Account ID as filter in AccountID field