I wanted to get the structure of Campaign and Campaign Member in Salesforce.

these two objects are connected via Lookup in the system but on the Campaign(Parent) object, it allows me to create a Roll-up Summary fields with summarized Object as "Campaign Members".

Aren't Rollup's only for master detail? Am I missing something here?


Some standard relationships support Rollup Summary Fields, despite being listed as a Lookup field. For custom relationships, Rollup Summary Fields are only supported on the Master-Detail relationship type. Note that CampaignId on CampaignMember is a Master-Detail relationship, despite not appearing as such in the UI. It supports cascade deletes, cannot be altered after creation, and enables Rollup Summary Fields.

  • Thanks for the explanation @sfdcfox. – Anurag May 16 '19 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.