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
TTATTA 

Counting number of related records

Hi all,

 

I have got two custom junction objects called Hotel Club and Register Child. Both objects are linked by a look up relationship. 

 

My question  how can I calculate the number of registered child on a hotel club. I can't create a master detail relationship on Register Child Object as it is also a child object of Client. Otherwise I can simply count the numbers.

 

Thanks, in advance ,for your help.

 

Regards, 

SFDCDev7SFDCDev7

Hi,

 

You can achieve this through a trigger.

Refer the below link

http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=7792&query.id=162100#M7792

 

 

Thanks,

AJ