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
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 ...
Sonam_SFDCSonam_SFDC
Go through the below community thread:
https://developer.salesforce.com/forums?id=906F00000008ugtIAA

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 ?
Sonam_SFDCSonam_SFDC
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