You need to sign in to do that
Don't have an account?
Akshay Shrivastava
Object "A” => Master Object “B" => Detail Lookup Relationship We have to create a Custom field on “A”, which will show the total number of its “B” records. We can not change the relationship type of objects.
THROUGH CODING
Greetings!
We can call that field as Rollup Summary field and please refer the sample code in the below blog to create using Apex trigger:
https://www.biswajeetsamal.com/blog/custom-rollup-summary-field-using-apex-trigger/
Please mark it as best answer if it helps you to fix the issue.
Thank you!
Regards,
Shirisha Pathuri