Laptop loading lead records during a Salesforce migration, in a dark security operations room

Finishing a Salesforce Migration for a Cybersecurity Firm

The project

The client is a cybersecurity services firm that was consolidating two Salesforce orgs. An earlier migration had moved part of the data and then stopped. Leads, activity history, and the marketing process were still in the old org, and neither org had ever been in source control.

We put both orgs in Git, rehearsed the rest of the Salesforce migration in sandboxes, and then ran it in production. Since then we have rebuilt the lead status model, lead scoring, and reporting in the new org.

Industry

Cybersecurity services

Services

Salesforce engineering: data migration, Apex development, and reporting

Stack

Salesforce, Apex, Bulk API 2.0, Account Engagement (Pardot), Python, Git

What the Salesforce migration covered

What we found

  1. Leads and years of activity history still in the old org
  2. Leads in the new org with no lifecycle stage set
  3. Opportunities no longer credited to the reps who had owned them
  4. Lead scoring rules that Account Engagement (Pardot) could not express on its own
  5. No version control for either org

What we delivered

  1. Hundreds of thousands of leads, tasks, and events moved into the new org
  2. Opportunities back with the reps who originally owned them
  3. One lead status with guided steps for qualifying, nurturing, and disqualifying a lead
  4. Lead scoring in Apex and Account Engagement (Pardot), with scores that decay when a prospect goes quiet
  5. Both orgs in source control for the first time, with our changes reviewed in pull requests and tested in a sandbox before release

How we ran the Salesforce migration

A Salesforce Migration We Could Rehearse

We built the migration as a pipeline that could be rerun. Records load through Bulk API 2.0 as upserts, so repeating a run does not create duplicates. Rehearsal runs in sandboxes found and fixed the causes of failed records before the production run.

Lead Status and Scoring

One lead status replaced several overlapping lifecycle fields, and the screen asks for a reason when a lead is qualified, sent to nurture, or disqualified. Lead scoring runs in Apex alongside Account Engagement (Pardot), and scores decay when a prospect goes quiet.

Tested Releases and Reporting

Each production release runs as a validation first, then a deploy, with the Apex tests passing. The team also got dashboards and reports for executives, lead operations, and data quality.

We do this kind of Salesforce work for other companies too: migrations, data cleanup, Apex, and reporting. Read about our Salesforce consulting services, or tell us about your org.

Send a few details about the project and we’ll get back to you.

Contact Form