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
Ashu sharma 38Ashu sharma 38 

how to populate the count of child records in parent object

Hi,

As I have an issue :
I have to populate the count of one object which have related as follow::

    Seesion Issue----(Child of Session Object)
                      Session ------(Parent of Session Issue and Middle Issue)
                                    Middle Issue------(Parent of Section Issue)
                                           section Issue()-------Accounts(parent of Section Issue)

Chandu007Chandu007
Hi Ashu,

Use Roll-up summary fields(https://help.salesforce.com/articleView?id=fields_about_roll_up_summary_fields.htm&type=5) or refer below links for trigger solution
http://www.srinivas4sfdc.com/2016/03/number-of-child-record-count-on-parent.html


Thanks,
Chandu