Activity Forums Salesforce® Discussions Can we have a roll-up summary field in case of a Master-detail relationship?

  • Can we have a roll-up summary field in case of a Master-detail relationship?

    Posted by Shweta on May 21, 2020 at 2:58 pm

    Can we have a roll-up summary field in case of a Master-detail relationship?

    MOHIT replied 4 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • MOHIT

    Member
    May 21, 2020 at 3:02 pm

    Yes. You can have a roll-up summary in case of a master-detail relationship. But not in case of a lookup relationship.
    A roll-up summary field is used to display a value in a master record based on the values of a set of fields in a detail record. The detail record must be related to the master through a master-detail relationship.
    There are 4 calculations that you can do using roll-up summary field. You can count the number of detail records related to a master record. Or, you can calculate the sum, minimum value, or maximum value of a field in the detail records.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos