Clay + Salesforce Integration: Setup, Field Mapping, and Sync Fixes (2027)

Jorge Macias headshot

Jorge Macias

Clay + Salesforce Integration: test Sandbox first, map Only write if empty, overwrite Fresher data only

Salesforce data starts going stale the day it’s entered, as people change roles and companies grow.

Table of Contents

Salesforce data starts going stale the day it’s entered, as people change roles and companies grow.

A Clay Salesforce integration can keep your CRM records enriched automatically, so firmographics, titles and employee counts stay current without manual updates.

Without the right setup, though, the same connection can work against you. A single sync can overwrite a title a rep corrected the day before, or create a second record for an account your team already owns.

This guide walks through the full setup, from connecting a sandbox to choosing write rules and fixing duplicate or stale records.

Key Takeaways (TL;DR)

  • Production and sandbox: connect both environments, and test every change in the sandbox first.

  • Data flow: import accounts, contacts, leads and opportunities into Clay, then sync enriched data back to Salesforce.

  • Setup steps: add Salesforce as a source, choose your records, set the sync frequency and turn on activity import and record matching.

  • Field mapping default: review the auto-map, and use “only write if empty” for most fields.

  • Overwrite rule: allow overwrites only where Clay’s data is reliably fresher, such as employee count.

  • Data transformation: build workflows that reshape Clay’s output when it doesn’t match how your CRM stores data.

  • How The GTM Engineering Company helps: we build, test and document Clay Salesforce integrations inside your stack, from sandbox testing to write rules, so your team can run the setup after handover.

Table of Contents

  1. Clay Salesforce Integration: at a Glance

  2. How the Clay Salesforce Integration Works

  3. Before You Connect Salesforce to Clay

  4. How to Connect Salesforce to Clay: Step by Step

  5. Clay Salesforce Field Mapping: How to Map Fields Safely

  6. Build Workflows That Match Your Data Structure

  7. Clay Salesforce Sync Fixes: Common Problems and How to Solve Them

  8. Everything You Need to Know About Clay Salesforce Integration

  9. Get Your Clay Salesforce Integration Built Right the First Time

  10. FAQs About Clay Salesforce Integration

Clay Salesforce Integration: at a Glance

Topic

Key takeaway

Environments

Connect production and sandbox, and test in the sandbox first

Directions

Import Salesforce records into Clay, then sync enriched data back

Objects

Accounts, contacts, leads and opportunities

Setup

5 steps, from adding Salesforce as a source to turning on record matching

Write rules

“Only write if empty” by default, with overwrites for data Clay keeps fresher

Fields

Map the fields that matter for each object, not every field available

Workflows

Transform Clay’s output to fit your CRM’s picklists and formats

Common fixes

Write rules, transformation steps, record matching and sync settings

Every setting in this table depends on how Clay and Salesforce exchange data, which comes down to where you connect and which direction the data moves.

How the Clay Salesforce Integration Works

Teams that get the most from a Clay Salesforce integration usually settle two questions before they import a single record.

They decide where Clay connects, and they decide how data should travel between the two systems.

Here’s how each one works:

1. Production and Sandbox

Clay can connect to two kinds of Salesforce environments, and the difference between them decides how risky your first sync will be.

Your production org is where reps work every day. Every value Clay writes there lands on a live record straight away, which is useful once the setup is proven and costly if a mapping is wrong.

A sandbox removes that risk, since it copies your org’s fields and settings but holds only test data. Because nothing there reaches live records, Clay’s own guide to enriching Salesforce records recommends testing the full mapping in a sandbox first.

Add the sandbox in Clay as a Salesforce Test Env connection and run a small test batch. If the write rules and record matching hold up, repeat the setup in production.

2. Import and Sync

With the environment chosen, the next question is how data should travel between Clay and Salesforce.

The connection works in two directions:

  • Import: you pull Salesforce records into Clay, where they can be enriched, scored and matched against other sources.

  • Sync: you push your Clay workspace and audiences back to Salesforce, so the enriched data lands where reps actually work.

When importing, you can bring in 4 Salesforce objects:

  • Accounts: company-level records, where firmographics such as employee count and revenue live.

  • Contacts: people already linked to an account.

  • Leads: prospects who haven’t been converted yet.

  • Opportunities: open and closed deals tied to an account.

That covers most of what a revenue team tracks, which is why this Clay CRM integration often becomes the main enrichment layer for the whole CRM.

Since that layer reaches every record, most teams import first and review the results in Clay before turning on the sync to Salesforce.

Before You Connect Salesforce to Clay

Importing first only protects your CRM if the groundwork is already in place.

Most failed setups skip at least one of these checks:

  • Salesforce access: you’ll need an admin account with API access and permission to authorize connected apps. Without the right permissions, the connection either fails or can’t reach the objects you need.

  • Clay plan: check that your plan includes the Salesforce actions you want to use, such as importing, creating and updating records. The details of Clay pricing also affect how often syncs run and how many credits enrichment uses.

  • Field audit: list the Salesforce fields Clay is allowed to write to before you connect. Fields your reps edit by hand, such as lead status, usually belong on the protected list.

  • A sandbox ready to use: confirm your sandbox has recent data and the same fields as production. A sandbox that’s months out of date won’t show you how the integration behaves on real records.

The field audit matters most. Once data starts syncing, every unclear field becomes a judgment call, and judgment calls made mid-sync are how good data gets overwritten.

With access, plan and field list confirmed, you’re ready to set up the connection itself.

How to Connect Salesforce to Clay: Step by Step

Connect Salesforce in 5 Steps: Add the source (Salesforce and the record type), then Select records (Start with a small subset), then Sync frequency (Match how fast data changes), then Activity settings (Bring tasks and events in), then Record matching (Avoid duplicate records)

Once the groundwork is set, here’s how to connect Salesforce to Clay in 5 steps, each building on the one before it:

1. Add Salesforce as a Source and Choose the Record Type

Start in Clay by clicking Source and adding Salesforce. If you haven’t connected an account yet, Clay prompts you to sign in and authorize access, which is where your admin permissions come into play.

The tool then asks which type of record you want to import. Keeping that in mind, choose the object that matches your goal.

Each object suits a different kind of enrichment:

  • Accounts: ideal for firmographic enrichment, which fills in company-level details such as industry, employee count, revenue and location.

  • Leads and contacts: ideal for person-level enrichment, where Clay adds or verifies details such as a person’s job title and work email before reps reach out.

  • Opportunities: useful when you want deal details next to that data, such as the stage, size or source of an open deal, so enrichment can focus on the accounts already in your pipeline.

Clay lets you import several objects, but starting with the one tied to your most urgent goal keeps the first test small.

Once that object imports cleanly, adding the others means repeating the same steps.

2. Choose the Record Selection

Next, Clay asks which records to bring in. Under Record Selection, you can import a subset or every record in that object.

Start with a subset, such as open leads or target accounts, so the first test stays small and easy to check. Once that works, switch to all records to enrich the whole object.

Before you do, check the size of the list view you’re importing from. According to Clay’s Salesforce integration documentation, saved views it can’t turn into a SOQL query (Salesforce’s query language) are capped at 2,000 records.

If you need more than that, use a view Clay can query in full, or split the import into smaller batches.

3. Set the Sync Frequency

With your records chosen, this setting decides how often Clay checks Salesforce for changes, and so how quickly updates appear in Clay.

How often you can refresh depends on your Clay plan. Clay’s Audiences documentation notes that CRM syncs run every 15 minutes on the Enterprise plan, while other plans refresh less often.

Within those limits, match the frequency to how fast each object changes. Inbound leads change daily and reps act on them within hours, so refresh them often.

Company details like size rarely change, so a slower refresh keeps them current without spending credits on unchanged records.

4. Turn On Activity Settings

Records tell Clay who a company or person is, while activity shows what your team has done with them. Turning on the import activity settings adds that second layer, pulling Salesforce tasks and events into Clay with each record.

With that history in place, you can see which accounts reps have contacted and which records have no activity. Those details can later feed your scoring or routing rules.

Those rules usually need only recent activity, while older accounts can carry hundreds of tasks and events. Start with a subset, then expand once you’ve checked the data.

5. Turn On Import Record Matching

The last setting, import record matching, stops the same company or person from appearing in Clay more than once.

Without it, a company could show up once from Salesforce and again from a product sign-up list. Matching merges those copies, so enrichment runs once and syncs back to the correct Salesforce record.

A lead who signs up with an email already on a Salesforce contact, for instance, ends up as one record holding both the product data and the CRM history.

To merge records, Clay matches on one identifier you choose, such as email or domain. Pick the most reliable field in your data, since a weak one causes bad merges.

Once records are flowing into Clay, the next decision is what it may send back.

Clay Salesforce Field Mapping: How to Map Fields Safely

One write rule per field: Never write (fields your team owns, such as lead status); Only write if empty, the default for most fields; Overwrite (data Clay keeps fresher, such as employee count)

Every enriched value eventually lands in a Salesforce field, and Clay Salesforce field mapping decides which one.

At this stage, you pair each enriched column with a CRM field and decide whether it may change a value your team already entered.

Those choices protect months of rep updates from a single bad sync, and three steps help you make them well:

1. Review the Auto-Map Before You Trust It

The quickest way to start is using Clay’s “auto-map” feature, which matches columns to Salesforce fields by name.

That being said, this matching technique can go wrong too, since two fields can share a name, while still holding different data.

Here are two fields where that mismatch shows up most often:

  • Industry: Clay’s industry column might use different values from your Salesforce picklist.

  • Title: a title column might map to an old custom field nobody uses anymore.

So before saving, check that each mapped field points to the right destination and that its data format matches. Remove any field Clay shouldn’t write to at all, which saves cleanup once syncs start running on a schedule.

2. Choose a Write Rule for Each Field

Every mapped field needs a write rule. These rules control whether Clay can change a value that already exists in Salesforce:

Write rule

What it does

When to use it

Never write

Clay never changes the Salesforce value

Fields your team owns, such as lead status set by reps

Only write if empty

Clay fills the field only when it’s blank

The default for most fields

Overwrite

Clay replaces the existing value on every sync

Data Clay keeps fresher than Salesforce, such as employee count

Of these 3 rules, “only write if empty” is our default, since it fills gaps without replacing values your team entered, such as a title a rep corrected after a discovery call.

We switch to overwrite only for data Clay keeps more current than Salesforce, like employee count.

Teams that automate CRM data enrichment gain the most here, since those fields stay accurate without manual cleanup.

3. Map the Fields That Matter for Each Object

Write rules protect each field, but choosing which fields to map matters as much.

Start with those each object needs for routing and reporting:

Object

Fields worth mapping

Leads

Lead status, lead source, title and company

Accounts

Number of employees, annual revenue, industry and website

Contacts

Title, seniority, email, phone and LinkedIn URL

Opportunities

Account tier, deal source and key buying signals

These fields are where we start in most builds, so adjust them to match how your team routes and reports. Custom fields for scoring or territories often matter most, so map them deliberately and give each one its own write rule.

Either way, mapping fewer fields well beats mapping everything loosely, since every extra field adds another place where formats can clash.

Build Workflows That Match Your Data Structure

Even with careful mapping, Clay’s output rarely matches your Salesforce setup exactly. The tool returns data in the format each provider uses, while your CRM has its own picklists, naming conventions and formats.

That mismatch makes records fail to sync or land in a shape your reports can’t use, as in these cases:

  • Industry values: a provider returns “Computer Software”, while your picklist uses “SaaS”.

  • Employee counts: Clay returns an exact number, while your routing rules use size bands such as 51 to 200.

  • Country names: one source returns “USA”, another “United States”, while your CRM expects a single standard.

To prevent these mismatches, add a transformation step between Clay and Salesforce. Known as ETL (extract, transform, load), it reshapes each value to fit your CRM’s structure before the sync runs.

In Clay, this usually means a formula or AI column that converts raw values into your accepted formats.

Here’s how to build one:

  1. List the accepted values: export the picklist options for each Salesforce field Clay writes to.

  2. Create a transformation column: add a formula or AI column in Clay that converts each raw value into one of those options.

  3. Map the transformed column: point your Salesforce field mapping at the new column, not the raw one.

  4. Test in the sandbox: run a small batch and confirm every value lands without a validation error.

Once this layer exists, new data sources can plug in without breaking your CRM, since everything passes through the same conversion first.

Starting from proven Clay workflow templates can shorten this step, since many common transformations already exist as reusable tables.

With that layer in place, a basic connection becomes a Clay CRM integration your team can rely on.

Clay Salesforce Sync Fixes: Common Problems and How to Solve Them

A transformation layer stops many sync errors before they start, though not all of them. Even well-built integrations run into problems once real data starts moving.

Most issues trace back to a small set of causes, and each has a clear fix:

Problem

Likely cause

Fix

Good data overwritten

Write rule set to overwrite on a field your team owns

Switch the field to “never write” or “only write if empty”

Picklist or validation errors

Clay values don’t match Salesforce’s accepted options

Add a transformation step before the sync

Duplicate records

Weak matching identifier, or duplicate rules overridden

Use record matching and the Salesforce Record ID

Missing records

Import exceeds the 2,000-record limit for non-SOQL views

Use a SOQL-compatible view or split the import

Stale data

Sync frequency too low, or auto-update turned off

Adjust the sync schedule and check auto-update settings

Duplicates cause the most cleanup, so check them first. Clay blocks duplicate records by default unless “Duplicate Rule Override” is turned on in the Create Record action, so confirm that setting is off and your updates are keyed to the Salesforce Record ID.

Whatever the fix, test it in your sandbox first, then spot-check a sample of synced records each week for the first month.

That testing routine works beyond Salesforce too. If your team also runs HubSpot, the same steps help you diagnose a Clay HubSpot integration not working as expected, since the root causes are usually the same.

Everything You Need to Know About Clay Salesforce Integration

Goal

Setting

Why

Test changes safely

Connect a Salesforce sandbox

Mistakes stay away from live data

Enrich only part of your CRM

Choose a record subset

Keeps the first import small and easy to check

Keep data current

Match the sync frequency to how fast data changes

Balances freshness against credit use

Give Clay more context

Turn on activity settings

Brings tasks and events into Clay

Avoid duplicate records

Turn on import record matching

Merges records from several sources

Protect rep-entered data

Use “never write” or “only write if empty”

Clay fills gaps without overwriting

Keep fast-changing fields fresh

Use overwrite for fields like employee count

Clay’s data stays more current

Prevent sync errors

Add transformation workflows

Values match your CRM’s formats

Get Your Clay Salesforce Integration Built Right the First Time

A Clay Salesforce integration touches every record your reps rely on. Connecting it is quick, but your write rules and transformation steps decide whether the data stays clean.

The GTM Engineering Company builds these integrations inside your stack, so they work from day one and keep working as your data grows.

Here’s what that looks like when we work with your team:

  • An audit first: every engagement starts by reviewing your Salesforce setup and data, so the integration fits how your team actually works.

  • Builds inside your Salesforce and Clay: we work directly in your systems, alongside your team, with every workflow documented.

  • Your tools stay in your name: every subscription remains yours, so nothing leaves with us when the engagement ends.

  • Clay Expert Program member: our team brings hands-on Clay experience to every build.

Engagements with us run from $5,000 to $7,000 a month, with a 4-month minimum that extends to 6, 9 or 12 months once the work delivers.

For Series A to C B2B teams on Salesforce, we fix overwritten fields and duplicate records, then rebuild the mapping so Clay and Salesforce stay in sync.

Book a call with The GTM Engineering Company, and our team will review your current Clay and Salesforce setup, while mapping out the integration you need.

FAQs About Clay Salesforce Integration

How do I connect Salesforce to Clay?

To connect Salesforce to Clay, add Salesforce as a source in Clay and choose the record type to import. Then select a record subset or all records, set the sync frequency and turn on activity settings and record matching. Test the full setup in a Salesforce sandbox before connecting production.

Can Clay connect to a Salesforce sandbox?

Yes, Clay can connect to a Salesforce sandbox as well as your production org. A sandbox mirrors your setup with test data, so you can check field mapping and write rules safely. Clay recommends testing in a sandbox before any change reaches production.

Which Salesforce objects can Clay import?

Clay can import 4 Salesforce objects: accounts, contacts, leads and opportunities. You can also bring in tasks and events by turning on the import activity settings. Start with one object, confirm the mapping works, then add the others.

How often does the Clay Salesforce sync run?

The Clay Salesforce sync runs on a schedule set by your Clay plan. CRM syncs run every 15 minutes on the Enterprise plan, while other plans refresh less often. Match the frequency to how quickly your data changes.

How do I stop Clay from overwriting Salesforce data?

To stop Clay from overwriting Salesforce data, set each mapped field’s write rule. Use “never write” for fields your team owns and “only write if empty” for most other fields. Reserve overwrite for data Clay keeps fresher, such as employee count.

Why is my Clay Salesforce sync creating duplicates?

A Clay Salesforce sync usually creates duplicates because of a weak matching identifier or an overridden duplicate rule. Clay blocks duplicates by default unless “Duplicate Rule Override” is turned on. Turn on import record matching and key updates to the Salesforce Record ID.