Tuesday, January 28, 2014

How to get total number of Child records in Lookup relationship

How to get total number of Child records in Lookup relationship

As Rollup Summary field is only supported in Master detail, we cannot use it for Lookup. There are following two ways (If anyone has any other idea please comment).

Inline Visualforce page
Trigger on Child Object, which will update field in Parent record if child record is inserted, deleted or undeleted

No comments:

Post a Comment