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. 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. 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. 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. 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. 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).

FieldOwned byOutlevo fieldCRM fieldDirectionMatch key
(example) Company websiteOutlevodomainCompany domain nameOutlevo to CRMdomain

Download the worksheet (CSV)

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.

Build it against fake data first

A test key works on a sandbox of fake companies: no credits used, no email sent.