Salesforce (Destination)

You can sync data from your database or warehouse to Salesforce with a simple SQL statement.

Use the Mapping UI

  1. To start sending your database data to Salesforce, authorize the app.

  2. Write your SQL query in the app for the data you want to send to Salesforce, and view the results. Be sure to include the Id for the record in Salesforce. If you don’t already have the id in your database, you can query Salesforce (Source) live from SeekWell to get another identifier that is in your database (for example, email) and join to that to get the Id.

  3. Under Destination on the right, select Salesforce. Fill the following fields:

    1. Object (for example, Account)

    2. Operation (for example, update)

      Select Salesforce as Destination

      Select Salesforce object

  4. To the right of Results, select Mapping.

    Select Mapping

  5. In the Mapping UI, select columns from your query and map them to the fields in Salesforce you want to send them to.

    Map columns

  6. Once you’ve finished mapping all your columns to their corresponding fields in Salesforce, select Test Sync to ensure the sync is working. If the records have not updated, you can view your job statuses in Salesforce under Setup  Bulk Data Load Jobs. Select the Job ID and scroll down to view any errors. You can also view background job errors in the SeekWell App’s Feed.

    View job statuses in Salesforce

  7. Add a schedule under Repeat so your sync runs regularly and your Salesforce data is always up-to-date.

Null values

Use the special value #N/A to "blank out" or set a field to NULL. For example:

select
u.salesforce_id as "Id",
u.email as "Email",
case when u.some_column is null then '#N/A' else u.some_column as "Custom_Data__c"
from public.users as u

Upserts

You need to specify an External ID (such as email) for upserts.

Using Parameters

You can also use Parameters to map your columns to their corresponding fields in Salesforce, as in the video below:

salesforce parameter gif


Was this page helpful?