August 31, 2012

Chatter enhancements in Winter’13 release !

Feeling for reading salesforce release notes is close what I feel when I am unpacking a shipped gadget, its same excitement to see and feel.

Here are my fav. chatter features from this winter’13 release

Chatter Polls

Just like Facebook, it allows one to easily create polls that will appear in chatter feed. This would really help, because I previously achieved the same by counting like on comments(venue options in the example below)

August 18, 2012

Creating easy rollup summary fields in salesforce

Rollup summary fields are pretty common requirement in customizations and app development. Rollups are easy to create on master-detail relationships as they are available as a field type. But on certain limits/situations we need to write apex code for rolling up the child information for common aggregations like COUNT, SUM, AVG, MAX/MIN etc, some of these limitations are

The 'USUAL' approach to handle this limitation is to either

  • Write trigger on various DML(reate, Update, Delete/Undelete) events on child sobject. These trigger either manually aggregated the information via Apex or used SOQL Aggregate queries for the same.
  • Write some batch/scheduled apex to perform this nightly.

I tried solving this problem by creating a small apex utility called “LREngine”. Complete description and details about it are available here on github: