Join the DLRS Trailblazer Community - Today!

What is Declarative Lookup Rollup Summaries?

DLRS is a mechanism for aggregating or summarizing data from child objects and displaying it on a parent object. It serves the same purpose as Rollup Summary fields, but it is much more flexible with the kind of data that can be rolled up and how criteria are formed.

What business problems does DLRS solve?

In Salesforce, there are “Rollup Summary Fields” that exist as standard fields in your instance and allow you to calculate metrics on a related list record (child object) and then show that value on the parent object. The business problem solved here is generally the ability to create a key metric or “summary” of a calculated value on a field in your Salesforce instance. Some examples may be Total Closed Won Amount.

There is a limit to how many “RUS” fields that Salesforce permits you to create. With DLRS - there is no such limit - you can create as many of them as needed.

Additionally - the metrics available with RUS fields - are limited to sum, minimum value, or maximum value as a calculated metric. There are extended “Operations” that can be performed with DLRS.

Features Summary

  • Rollup information between Lookup relationships not previously possible without writing Apex Triggers
  • Define rollups using standard UI declaratively, no coding required
  • Define filter criteria on rollups for example Rollup Amount on Opportunity onto Account for Closed Won
  • Supports Realtime, Scheduled and Developer API modes
  • Open source, available in code and managed package form.
  • Managed package has passed Salesforce Security Review and is Aloha enabled
  • Supports Custom Metadata, rollups can be included in Change Sets and Packages for easier deployment

DLRS Misconceptions

  • Real-time trigger - Set Lookup Rollup to Realtime Calculation Mode. Info
  • Invocable from Flow or Process Builder - This is what allows DLRS to run in Professional Edition. Info
  • Scheduled full calculations - There is a button to schedule full calculations. Info
  • Async trigger based calculations - This is a feature of Scheduled Calculation Mode. Info

Follow the DLRS Journey


NOTE: The links are in chronological order, if your new to the tool, read from the bottom upwards


Back to top

Declarative Lookup Roll-Up Summaries is a tool built and maintained by a community of volunteers through the Open Source Commons program. This is not a Salesforce-owned product. If you need support, go to the Trailblazer Community Group.