Skip to content
Data Engineering

Preserving sales history in a HubSpot to Salesforce migration

A fund research team secured 23,684 HubSpot activities in a searchable archive and began checking Salesforce imports against the original records.

Built by
Forhad
Date
Stack
Node.js · MongoDB · HubSpot API · Salesforce API · Google Sheets API
A ledger of 23,684 archived HubSpot activities beside the Salesforce test-batch checks for dates and notes.
  • The sales team needed to take years of account history into Salesforce. A rep opening an account still needed to see who called, what was promised and when the last conversation took place.

  • Forhad built a HubSpot archive in MongoDB, gave the team Google Sheets views for review, and tested Salesforce imports against the source records.

  • The archive holds 23,684 activities, with timelines for 1,653 companies and 2,830 contacts. At this stage, Salesforce imports had reached verified test batches. The full cutover was still ahead.

What had to follow each account

Forhad worked on the migration as Changing Digital’s AI automation and data engineer. A company name and a contact list would have told a rep very little about an existing relationship. The HubSpot archive held 7,856 calls, 2,854 meetings, 8,711 emails, 2,123 messages, 1,716 notes and 424 tasks. Each activity needed its place in the account’s history.

The first import copied the records into a database the team controls. Later syncs picked up changes in HubSpot and kept earlier versions. Sales could open the timelines in Google Sheets and review them before moving the records into Salesforce.

How the team checked a Salesforce batch

For each test batch, the import preserved the original creation and modification dates and brought notes across as native Salesforce notes. An automated comparison checked each migrated record against its source. A separate report listed HubSpot fields with no Salesforce equivalent, giving the business a concrete list of decisions to make before cutover.

A daily log tied changes in Salesforce to individual migration runs. That let the team trace a test record back to its import while the original HubSpot history remained available for comparison. At this stage, 113 automated tests had passed across the sync, account timelines and migration logic.

Related case studies

Need something similar?

Tell us what you want to build or automate, and we'll reply with clear next steps.