Activity Forums Salesforce® Discussions How to get total number of Child records in Salesforce Lookup relationship? Reply To: How to get total number of Child records in Salesforce Lookup relationship?

  • shariq

    Member
    September 22, 2018 at 6:31 pm

    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.