GTM engineering · lesson 5 of 8
Sync the CRM without duplicates
Most CRM syncs fail the same way: a retry creates a second company, two tools overwrite each other, and sales stops trusting the data. Decide who owns what before you move anything.
You end with
A field map with one owner per field, and a sync that can run twice without creating anything twice.
Do this
- 1
One owner per field
The CRM owns the deal, its stage and the account owner; Outlevo owns why the account fits and what was sent. Write it down: a field with two owners will flip back and forth.
- 2
Match on the domain
Companies match on their website domain, not their name. Store Outlevo's company_id on the CRM record and the CRM id as Outlevo's external_id, so later calls go straight to the record.
- 3
An Idempotency-Key from the source
Build the key from the source record and the action ("hubspot-company-123-create"), never a random value per run, so a retried run is recognised.
- 4
Already exists means found
When adding a company answers 409 COMPANY_EXISTS, take the company_id from the answer and update that account instead. Tell the workflow step not to stop on it.
- 5
Push what sales needs
Qualified accounts, interested replies and booked meetings belong in the CRM. Every sent email and bounce does not: it buries the pipeline.
How Outlevo handles it
What the API and the webhooks do for this step, so your workflow does not have to.
- The API asks for an Idempotency-Key on every POST, PUT and PATCH: the same key with the same request returns the first answer again, and with a different request it is refused.
- Adding a company whose domain is already an account answers 409 COMPANY_EXISTS, with that account's company_id.
Your worksheet
Fill in one row per field. The row below is an example (illustrative).
| Field | Owned by | Outlevo field | CRM field | Direction | Match key |
|---|---|---|---|---|---|
| (example) Company website | Outlevo | domain | Company domain name | Outlevo to CRM | domain |
Common mistakes
- Matching companies by name, so "Acme Inc" and "Acme" become two accounts.
- A random Idempotency-Key on every run, which protects nothing.
- Stopping the workflow on 409 instead of updating the account it names.
- Syncing every lead, so the CRM fills with people nobody will call.
Workflows to import
Ready n8n workflows for this step. Each carries a note with its credentials, the scopes its key needs and the subscribe call.
Qualified company to HubSpot
Adds every company that passes your ICP to HubSpot, with the reasons in the description.
company.qualified · companies:read
Qualified company to Salesforce
Adds every company that passes your ICP to Salesforce, with the reasons in the description.
company.qualified · companies:read
Interested reply to Pipedrive
Adds every person with an interested reply to Pipedrive, with the reason in a note.
lead.classified · contacts:read
Booked meeting to a HubSpot deal
Opens a HubSpot deal for every booked meeting, at the stage you pick.
meeting.booked · companies:read, contacts:read
New qualified companies to HubSpot, daily
Every morning, adds the companies that qualified since yesterday to HubSpot; each one only once.
scheduled or inbound · companies:read
Build it against fake data first
A test key works on a sandbox of fake companies: no credits used, no email sent.