How To: Create Roll Up Summaries using Flow [Video]

We’ve gone back through our archive this week, returning to a post which still today proves amazingly popular, often topping our weekly page views stats. Here’s a new video version of “How to Create Rollup Summaries Using Flow”!

Of course, we have upgraded to Lightning for this new video – just please forgive the few speed bumps encountered along the way…

All that is left for us to say is thank you for making the original post one of the most popular, and hope you enjoy the video just as much!

http://www.salesforceweek.ly/2015/02/how-to-create-roll-up-summaries-using-flow.html

http://www.salesforceweek.ly/2015/02/how-to-create-roll-up-summaries-using-flow-part-2.html

2 thoughts on “How To: Create Roll Up Summaries using Flow [Video]

  • Brilliant!!! Thank you! Question: What would be different if you were going to do a child record count (instead of a field sum)? Example: Number of child records that have “x”.

    • Great question, Roy!

      Up until recently, our answer would have been that you’d do something like this:

      – Look up all child records which meet your criteria
      – Assign those records to an sObject collection variable
      – Create a number variable, defaulted to 0
      – Loop through each item in the collection, and for each step of the loop, add 1 to your number variable
      – At the end of the loop, assign the final value of your number variable to the field you want the count stored in

      But as of Summer ’18, there is a new ‘equals count’ assignment operator in flow. So what you’d do now is even easier:

      – Look up all child records which meet your criteria
      – Assign those records to an sObject collection variable
      – Create a number variable, defaulted to 0
      – Assign that number variable to the ‘equals count’ of your sObject collection variable
      – Assign the value of your number variable to the field you want the count stored in

      The Summer ’18 release exam on Trailhead has the perfect use case for you to try this out! https://trailhead.salesforce.com/modules/platform-app-builder-cert-maintenance-su18/units/get-hands-on-with-flows

Leave a Reply

%d bloggers like this: