Trigger to count number of contacts associated with an account ( Bulkified & Uses Aggregate results)
I was working on the similer requirement where I need to check the number of records on the lookup relationship child object and update a field on the parent.
During my search on aggregate results, I found one result which was very easy and thought I will share that here.
Link of the discussion : https://developer.salesforce.com/forums/?id=906F0000000AcdaIAC#ext-gen52
Answered by @Peter_sfdc
During my search on aggregate results, I found one result which was very easy and thought I will share that here.
Link of the discussion : https://developer.salesforce.com/forums/?id=906F0000000AcdaIAC#ext-gen52
Answered by @Peter_sfdc
Comments
Post a Comment