Salesforce and HubSpot integration: what it really takes
Connecting a CRM looks like a weekend job: get access to the API, copy a few fields. Then the first large account hits the API limit, duplicates appear and a security team starts asking questions. Here is what we learned in more than two years of building Salesforce and HubSpot integrations for a sales-tech product.
By Ross Honcharuk, founder and CTO7 min read
Most integrations break for the same reason: they are built as a script, not as a product. A script works for one account on a quiet day. An integration has to work for every customer, every day, within limits set by the CRM vendor.
First decide which way the data flows
| Direction | Good for | Watch out for |
|---|---|---|
| From the CRM to your product | Analytics, dashboards, reminders | API limits on large accounts; data is only as fresh as the last sync |
| From your product to the CRM | Leads, orders and activity from your site or app | Duplicates, required fields and validation rules set by the CRM admin |
| Both ways | Records people edit in both places | Conflicts: decide in advance which side wins for each field |
Two-way sync is what people ask for first, and what causes the most trouble. Often a clear rule is enough: the CRM owns the deal, your product owns its own data, and each side only reads the other.
Sign-in: OAuth with the smallest possible access
Customers connect their CRM through OAuth 2.0: they sign in to Salesforce or HubSpot and approve access, and your product never sees their password. Ask only for the scopes you really use, because every extra permission makes the approval screen scarier and the security review longer. Tokens expire and get revoked, so the integration has to refresh them and tell the user clearly when access is gone.
API limits: queues instead of loops
Both CRMs limit how often you may call them. Salesforce counts API requests per organisation per day; HubSpot limits how many requests an app makes within a few seconds. A sync that simply loops over every record hits those limits on the first large customer.
- Background queues. Syncs run in the background, account by account, so a large customer never blocks a small one.
- Incremental sync. After the first import, ask only for what has changed since the last run.
- Wait and retry. When the CRM answers “too many requests”, pause and try again instead of failing the whole sync.
- Bulk endpoints for history. Years of old deals go in through the CRM’s bulk or batch APIs, not one record at a time.
Field mapping and duplicates
No two CRM accounts look the same. Admins add custom fields, rename stages and set validation rules. The mapping between your data and theirs should be a setting, not code, and every write should first look for an existing contact or company, so the integration does not create twins.
When the CRM has no API
Not every system a business relies on has an API. For a furniture manufacturer, half of a CRM integration runs through Puppeteer browser automation: a robot fills in the screens a person would. It is slower and more fragile than an API, so it is a bridge, not a destination. As soon as an API exists, the integration should move to it.
Security reviews come with enterprise customers
The bigger the customer, the sooner their security team appears. The sales-tech SaaS we built integrations for passed SOC 2 and Google CASA reviews; CASA is what Google requires when an app reads Gmail through restricted scopes. Designing for such a review from day one costs little: minimal scopes, encrypted tokens and stored data, and a clear record of what the integration reads and why.
What the sales team actually gets
A good integration goes unnoticed; its value is in what it makes possible. For Barista AI, CRM data fed a metrics engine: deal cycle, conversion by stage and meetings per deal, for each rep and each team. A Zoom app put the right cue card in front of a rep during the call, and Gmail and Slack added what the CRM did not know.
How we use AI on integration work
AI assistants write API clients, field mappings and tests quickly. An experienced architect designs the data flow, decides which side owns which field and checks each change before it reaches a live CRM account.
Questions and answers
How long does a Salesforce or HubSpot integration take?
It depends on the direction of the sync and the number of objects: a one-way sync of a few objects is far smaller than a two-way sync with custom fields. After a short look at your data we give you a written plan.
Should we sync both ways?
Only where people really edit the same records in both places. Otherwise let each system own its data and read the other one; that is simpler and causes fewer conflicts.
Do we need a Salesforce developer for this?
Not for an integration around Salesforce: it is built on the CRM’s APIs. Configuration inside Salesforce itself is separate work, and we tell you when it is needed.