You need to sign in to do that
Don't have an account?

Self relationship in an object and get the count of child records from related list
Hi Experts,
I have an object ( say Account) and defined a self relationship Account object which is 1 parent Account can have multiple child Accounts.
Now I have to get the count of child objects from the related list and update the count in parent... how to do achieve this?
Appreciate your inputs...
I have an object ( say Account) and defined a self relationship Account object which is 1 parent Account can have multiple child Accounts.
Now I have to get the count of child objects from the related list and update the count in parent... how to do achieve this?
Appreciate your inputs...
You definitely need to write a custom code using apex trigger.
Please refer the below blog it may help you.
http://salesforcekings.blogspot.in/2015/07/rollup-summar-trigger-for-lookup.html