Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Salesforce Unify Direct Integration Guide


This guide outlines the process for setting up Salesforce(link takes you to an external page) as a data source with Segment Profiles.

Once configured, this integration lets you send Salesforce data directly to Segment Profiles, eliminating the need for a data warehouse and enabling faster data synchronization and profile enrichment.

(information)

API usage and billing

The Salesforce Unify direct profile integration increases API usage. Verify your API limits and Segment billing before you enable the Salesforce Unify direct profile integration.


Prerequisites

prerequisites page anchor

Before you begin, make sure that you have the following:

  • A Segment workspace with Unify enabled and Identity Resolution set up.
  • Administrator access to your Salesforce account.

Follow the steps in this section to set up the Salesforce Unify Direct Integration.

Step 1: Add Salesforce as a source

step-1-add-salesforce-as-a-source page anchor

Start by setting up Salesforce as a source:

  1. From your Segment workspace, go to Connections > Catalog > Cloud App Objects.
  2. Select Salesforce as your source.
  3. Name your Salesforce source and authenticate with your Salesforce credentials.
  4. Once connected, use Selective Sync to choose the Salesforce collections and columns you want to sync.

After successful authentication, Segment adds the source but it isn't immediately enabled by default.

(warning)

Don't enable the source before configuring a Profiles destination

After adding Salesforce as a source, don't enable it yet. You must first set up the Segment Profiles destination and configure the mapping. Enabling the source before completing these steps might result in incomplete or incorrect data syncing.

Step 2: Add a Segment Profiles destination

step-2-add-a-segment-profiles-destination page anchor

Next, add a Segment Profiles destination:

  1. From the Overview tab of your Salesforce source, click Add destination.
  2. From the catalog destination page, click Segment Profiles, then click Add destination.
  3. Name your destination, then click Create.

Step 3: Create a data model

step-3-create-a-data-model page anchor
  1. In the Salesforce source you created, go to the Models tab and click Create Model.
  2. Select the fields you want to map to the Segment Profiles destination.
  3. Preview and validate the schema with real-time Salesforce data.
  4. Name your model and save it.

Step 4: Configure mapping

step-4-configure-mapping page anchor
  1. In the Salesforce source, go to Models > Add mapping.
  2. Segment returns you to the Segment Profiles destination. Click Add mapping.
  3. Select your data model and map your selected Salesforce data to fields in Segment Profiles (typically "Identify" for profile updates).
    • Select the Profile space you want to update.
    • Map Salesforce fields to Segment Profile fields. You must map either a User ID or Anonymous ID field.
  4. Test your mapping with real data from Salesforce.
  5. Save your mapping configuration.
The Select Mappings interface in Segment, showing fields for mapping event data from a source to a destination.

Step 5: Enable the destination mapping and Salesforce source

step-5-enable-the-destination-mapping-and-salesforce-source page anchor

Finish by enabling the destination mappings and the source:

  1. From the settings tab of the Segment Profiles destination, toggle the Enable destination switch to Enabled, then click Save.
  2. From the overview tab of the same Segment Profiles destination, toggle the Mapping Status switch to Enabled.
  3. Return to your Salesforce source and navigate to Settings > Basic settings.
  4. Toggle Enable source on.

Data now begins to sync between Salesforce and Segment.


After you've connected Salesforce and the Segment Profiles destination, the integration begins syncing data.

  • New or updated records in Salesforce are sent to Segment Profiles based on your mapping configuration.
  • The initial sync includes historical data within the range specified in your Selective Sync settings.
  • Further syncs take place at regular intervals (typically hourly).

Keep the following in mind as you work with the Salesforce Unify direct integration:

  • Start with a subset of data to test your integration before expanding to all Salesforce objects.
  • Regularly review your mapping to ensure it reflects any changes in your Salesforce schema or Segment Profile needs.
  • Monitor both your Salesforce source and Segment Profiles destination for errors and data discrepancies.

The Salesforce Unify direct integration supports mapping from a single Salesforce collection per data model. For complex use cases requiring data from multiple collections, you might need to create multiple data models and mappings.