Skip to content

Adding a new Field to the Rollup Definition

Cameron edited this page Dec 4, 2021 · 1 revision

Since supporting Custom Metadata and Custom Object storage for rollups things have got a little more complex when making enhancements. So i created this check list to remind me and others what to do...

  • Add the field to the LookupRollupSummary__c and LookupRollupSummary2__mdt objects, same type, description etc
  • Add the field to the Permission Sets
  • Add the field to the Layouts for both objects above, again same position
  • Add the field to the managelookuprollupsummaries page (for Custom Metadata record editing)
  • Add the field to the RollupSummariesSelector class, both inner selectors
  • Add the field to the RollupSummary DTO class, field accessor and field in the inner class RecordData and FieldData
  • If you need to pass the field to LREngine you might need to update RollupService.LookupRollupSummaryWrapper and RollupService.createLSFWrapper, RollupService.getContextKey and RollupService.createContext