All docs
/
Export
/
Salesforce integration

Salesforce integration

Cloud-based customer relationship management software.

Overview

Salesforce is a customer relationship management (CRM) platform that helps businesses manage their customer data and relationships. This integration lets you sync your Salesforce data with Clay to streamline your workflow.

Creating a table with Salesforce

  1. In a workbook, click + Add at the bottom.
  2. Search for Salesforce and select from the results.
  3. In the modal, you will be asked to Select Salesforce account.
    • If you haven't already connected your Salesforce account, click + Add account and go through authentication.

Source Import records from a Salesforce list

Inputs:

  • Salesforce object: The type of object to look for in Salesforce.
  • List view: The view to sync into Clay.
    • Views that are not SOQL-compatible (those that cannot be generated from a SOQL query) have a 2,000-record limit.

Source Import records from a Salesforce report

Inputs:

  • Report to run: The report to run in your Salesforce instance.
    • Only tabular and matrix reports are supported. Salesforce limits reports to a maximum of 2,000 records.
  • Uniqueness fields:
    • Since Salesforce reports lack unique identifiers, select specific fields to identify each row. This prevents duplicate records from appearing when the report updates.
      • Important: If you don't select any fields, Clay will use the entire row content as the unique identifier. This can result in many duplicate entries in your Clay table.

Enriching data with Salesforce

  1. While in a Clay table, click Add enrichment and search for Salesforce.
  2. Under Integrations, select one of the Salesforce options.
  3. In the modal, you will be asked to Select Salesforce account.
    • If you haven't already connected your Salesforce account, click + Add account and go through authentication.

Action Lookup records via SOQL

Look up records in Salesforce using a SOQL query.

Inputs:

Action Create record

Use this action to create a new record in Salesforce.

Inputs:

  • Salesforce object: The object type to look for in your Salesforce.
  • Duplicate rule override: When enabled and you have a duplicate rule, Clay will bypass the rule and create a new record, even if it duplicates an existing one.

Action Lookup record

Use this action to find existing records in Salesforce.

Inputs:

  • Salesforce object: The object type to look for in your Salesforce.
  • Exact match? (optional): When enabled, finds exact matches across all search fields.

Action Upsert object

Use this action to create a new record or update an existing one.

Note: In order for upsert to work, you need to have an external ID on the object.

Inputs:

  • Salesforce object: The object type to look for in your Salesforce.

Action Update record

Use this action to modify existing records in Salesforce.

Inputs:

  • Record ID: The ID of the record to update.
  • Salesforce object: The object type to look for in your Salesforce.
  • Ignore blank values (optional): When enabled, blank values from Clay will be ignored.

Action Convert lead

Use this action to convert a lead.

Inputs:

  • Lead ID: The ID of the lead to convert.
  • Converted status: The status to assign to the lead after conversion.
  • Account ID (optional): The ID of the account to link to the converted lead.
  • Contact ID (optional): The ID of the contact to link to the converted lead.
  • Create opportunity? (optional): Whether to create an opportunity for the converted lead.
  • Opportunity ID (optional): The ID of the opportunity to link to the converted lead.
  • Opportunity name (optional): The name of the opportunity to create.
    • If not provided, the lead's name will be used.

Working with picklist fields

When updating picklist fields in Salesforce from Clay, you need to match the exact format Salesforce expects.

Single-select picklist (dropdown)

Format: Exact text match (case-sensitive)

Key requirements:

  • The value in Clay must exactly match one of the picklist options in Salesforce
  • Case-sensitive (e.g., Technologytechnology)
  • Use the API value, not the display label

Example:

Clay Value: Technology

Salesforce Picklist Options: Technology, Healthcare, Finance

✅ This will work

Important notes:

  • For unrestricted picklists: If you send a value not in the list, Salesforce creates an "inactive" picklist value
  • For restricted picklists: Invalid values will cause an error
  • Always verify the exact API name in Salesforce field settings

Multi-select picklist

Format: Semicolon-separated values (;)

Key requirements:

  • Separate multiple values with semicolons
  • No spaces after semicolons
  • Each value must exactly match a Salesforce picklist option (case-sensitive)

Example:

Clay Value: Technology;Healthcare;Finance

Important: Salesforce uses semicolons as delimiters for multi-select picklists, NOT commas!

Common picklist errors

Error Cause Solution
Bad value for restricted picklist Text doesn't match picklist Check exact spelling & case in Salesforce
Values not updating Wrong delimiter used Use semicolons (;), not commas
Field not accepting value Using display label instead of API name Verify API name in Salesforce Setup

Batch processing

The Create record, Update record, and Upsert object actions support batch mode, which processes multiple records simultaneously for improved performance with large datasets. Batch mode is automatically enabled when running these actions across multiple rows in your Clay table. No additional configuration is required.

How batch mode works

When you run these actions on multiple rows in Clay, they automatically use Salesforce's Composite API to process records in batches rather than one at a time.

Benefits:

  • Faster execution: Process multiple records in a single API call
  • Better performance: Reduced overhead when working with hundreds or thousands of records
  • Individual error handling: Each record in the batch is processed independently—if one fails, others can still succeed

Best practices

  • Test before automating: Start with auto-update disabled when using Create or Update actions. Test manually with a few rows first before enabling automation.
  • Begin with lookup records: Use the free Lookup records action first to check for duplicates, enhance data, and screen against suppression lists.
  • Qualify early: Use conditional runs and free enrichment actions to qualify leads before spending credits on deeper enrichment.
  • Mind your relationships: Pay attention to contact-company relationships and duplicates. Plan how to handle unassociated contacts and merge duplicate records to maintain data quality and efficiency.

FAQs

For troubleshooting connection issues, permissions, OAuth errors, and other common questions, see Salesforce integration FAQs.

Explore other docs

Getting started

Table versions

Table versioning lets you track structural changes to your Clay tables over time and restore previous configurations when needed.

View article
Getting started

Table alerts

Table alerts automatically monitor your Clay tables and notify you when something needs attention.

View article
Export

Salesforce integration FAQs

Answering common questions about connecting and troubleshooting the Salesforce integration.

View article
Web scraping

Meer integration

Screen phone numbers against national do-not-call registries before initiating outbound calls.

View article
Settings & admin

Best practices for B2B email direct marketing

Conduct effective outbound email outreach whilst also lowering the risk of challenges

View article
Settings & admin

Do Not Contact (DNC) compliance & best practices

Information about DNC compliance and best practices.

View article
Web scraping

BuyerCaddy integration

Enrich company tech stacks, verify technology usage, and more!

View article

Other popular resources

Experts

Find a Clay Expert

Explore our network of Clay experts and agencies.

View experts
Community

Join our slack community

Find help in our slack community, and support channels.

Go to slack
Cohorts

Join a cohort, learn Clay fast!

The faster way to master Clay. Sign in if you're enrolled in a cohort (current or past) or apply!

Learn more about cohorts
Talents

Hire GTME Talent

Find and connect with GTM talent who've demonstrated expertise in building advanced workflows

Explore GTME talents