Count number of campaigns on a lead record

Share

Free Salesforce business guides to help admins/developers, project managers, sales managers, and decision makers. Download the free PDF series now: Reinventing Your Business, Reimagining Your Salesforce®.

Problem

Marketing wants to find out if their campaigns are successful in lead generation. How do you determine the number of campaigns that influence a Lead? Also, how engaged is a Lead?

Solution

Create a rollup that counts Campaign Members then have this value reside on Lead.

The first step is to create a new custom field (using Number as the data type) on the Lead object. You can name the field "Number of Campaigns."

Create the rollup:
  • Select Lead as the Destination Object
  • Select "Number of Campaigns" as the Target Field
  • Select Campaign Members as the Child Object
  • Use the default Relationship Field
  • Select Count as the Select Type. Note: IsDeleted is the default source field used for count rollups since it is a simple boolean field that exists on all records
  • A filter is not required since you want to count all Campaigns
  • Save and Run the rollup
    Count Number of Campaigns on Lead Rollup

 

The Date and Time of the Last Case Activity for the Account Rollup Helper Use Case Library Trigger Account Health Check
Chat Offline
Contact Us Here