Connecting Salesforceedit

Connector configuration instructions provided in this guide apply both to Salesforce and Salesforce Sandbox.

Salesforce is a cloud-based customer relationship management (CRM) platform with a focus on customer service, marketing automation, analytics, and sales operation tooling. The Salesforce connector provided with Workplace Search automatically captures, syncs and indexes the following items:


Including ID, name, title, address, and timestamps


Including ID, name, associated account, associated opportunity, and timestamps


Including ID, name, address, owner information, and timestamps


Including ID, name, type, description and timestamps


Including ID, owner information, extracted textual content, and timestamps

Configuring the Salesforce Connectoredit

Configuring the Salesforce connector is the first step prior to connecting the Salesforce service to Workplace Search, and requires that you create an OAuth App from the Salesforce platform. To get started, first log in to Salesforce (or Salesforce Sandbox) and access your administrative dashboard.

The procedures for Salesforce’s Classic UI and Lightning UI are very similar but the entry points are different.

Classic UIedit

Step 1. Click your account avatar in the top right and navigate to Settings:

Figure 81. Connecting Salesforce

Step 2. You’ll see a large list of menu items. Under Build, expand the Create dropdown, then click Apps:

Figure 82. Connecting Salesforce

Workplace Search needs an OAuth App with which to interface. There are two important things to understand before you create one:

  1. The app can stay in developer mode. You do not need to publish it.
  2. Make sure that you create this app with a trusted and stable Salesforce account.

We recommend creating a team-owned account for only this app. If access is lost, a new one must be created and the configuration updated in Workplace Search.

Step 3. Scroll to the Connected Apps section and click New:

Figure 83. Connecting Salesforce

From here, proceed to the Creating the OAuth Application step (see below).

Lightning UIedit

Step 1. From the Lightning experience, click Settings in the top right corner:

Figure 84. Connecting Salesforce

Step 2. Select App Manager on the left sidebar under Apps:

Figure 85. Connecting Salesforce

Step 3. Click the New Connected App button:

Figure 86. Connecting Salesforce

And then proceed to the Creating the OAuth Application step (see below).

Creating the OAuth Applicationedit

We must now create the OAuth application that Workplace Search will use to communicate with the Salesforce platform.

Step 1. Let’s start with the basic information:

  • Connected App Name: A name to help you identify the application. Workplace Search, or something like that.
  • API Name: A programmatic name which you can access via Salesforce API. Doesn’t impact Workplace Search – it’s for your benefit.
  • Contact Email: Use whichever you’d like.

You can also add a logo for visual identification.

Figure 87. Connecting Salesforce

Step 2. Click the Enable OAuth Settings checkbox: this will unveil many more options. Under Callback URL, add the following two redirect URLs, substituting <WS_BASE_URL> with the base URL at which Workplace Search is hosted (scheme + host, no path).

Callback URLs For Salesforce (Production)



# Deployment using a custom domain name

# Deployment using a default Elastic Cloud domain name

# Unsecured local development environment

Callback URLs for Salesforce Sandbox



# Deployment using a custom domain name

# Deployment using a default Elastic Cloud domain name

# Unsecured local development environment

You’ll need to move two scopes from Available OAuth Scopes to Selected OAuth Scopes:

  1. Full access (Full)
  2. Perform requests on your behalf at any time

Step 3. At the top of the page, click Save. You will now be able to retrieve your Consumer Key and Consumer Secret.

Step 4. From the Workplace Search administrative dashboard’s Sources area, locate Salesforce and provide both the Client ID and Client Secret. Voilà! The Salesforce connector is now configured, and ready to be used to synchronize content. In order to capture data, you must now connect a Salesforce instance with the adequate authentication credentials.

Connecting Salesforce to Workplace Searchedit

Once the Salesforce connector has been configured, you may connect a Salesforce instance to your organization.

Step 1. Head to your organization’s Workplace Search administrative dashboard, and locate the Sources tab.

Step 2. Click Add a new source.

Step 3. Select Salesforce (or Salesforce Sandbox) in the Configured Sources list, and follow the Salesforce authentication flow as presented.

The account used to connect Salesforce must have the "View All Data" profile permission enabled. Learn more about View All Data profile permissions on the Salesforce Help Center.

Step 4. Upon the successful authentication flow, you will be redirected to Workplace Search, and your organization’s Salesforce content will now be captured and will be ready for search gradually as it is synced. Once successfully configured and connected, the Salesforce synchronization automatically occurs every 2 hours.