function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aaronbedwell.ax1665aaronbedwell.ax1665 

Count of Campaigns on Lead/Contact/Opportunity

Does anybody know of a fairly "easy" way to count the number of campaigns on the lead/contact/opportunity objects? Can the code on the following site be tweaked fairly easily to do this?

 

Link: http://www.radialweb.com/2010/08/summarizing_salesforce_fields_with_triggers

 

I am not a developer and cannot write code from scratch so any help is appreciated.

 

Also, is it even possible to do this count on an opportunity? Or is it only possible on leads and contacts? Thanks.

Vinit_KumarVinit_Kumar

Hi,

 

Try the below link:-

 

http://www.anthonyvictorio.com/salesforce/roll-up-summary-trigger/

 

Basically,you need a roll up summary trigger and the ablove link will show from scratch as how you can get it.