Salesforce Connector for Bold Data Hub

Salesforce is a cloud platform that streamlines business operations and customer relationship management, encompassing sales, marketing, and customer service.

Grab Credentials for OAuth Option

To set up your pipeline using OAuth authentication, you’ll need your Salesforce client_idand client_secret

Obtain Client ID and Client Secret

  1. Log into Salesforce with your credentials.
  2. Open the Connected App.
  3. Under OAuth Settings, click Consumer Key and Secret.
  4. Complete the Email verification.
  5. Copy the Consumer Key (Client ID) and Consumer Secret (Client Secret)
  6. Ensure that the callback URL is updated with your Bold Data Hub application URL and that the required OAuth scopes are selected.

Salesforce Data Hub - BoldBI

Example Configuration

version: 1.0.1
encrypt_credentials: false
plugins:
  extractors:
    - name: Salesforce
      connectorname: Salesforce
      config:
        client_id : <Client ID>
        client_secret : <Client Secret>
        type: oauth
      select:
        - TABLE1
        - TABLE2

Grab Credentials for Basic Authentication

To set up your pipeline using Basic Authentication, you’ll need your Salesforce user_name, password, and security_token. Use your login credentials for the user_name and password.

Obtain Security Token

Follow these steps to obtain the security_token:

  1. Log into Salesforce with your credentials.
  2. Click your profile picture/avatar at the top-right.
  3. Select “Settings” from the drop-down.
  4. Under “Personal Setup” in the sidebar, choose “My Personal Information” > “Reset My Security Token”.
  5. Click “Reset Security Token”.
  6. Check your email for the token sent by Salesforce.

Connection Properties

The config section in a YAML file includes the following properties:

Connectorname: Salesforce
Username: UserName
Password: Password
Security_token: Salesforce security token

Example Configuration

version: 1.0.1
encrypt_credentials: false
plugins:
  extractors:
    - name: Salesforce_data
      connectorname: Salesforce
      config:
        username: <USERNAME>
        password: <PASSWORD>
        security_token: <SECURITY TOKEN>
      select:
        - TABLE1
        - TABLE2

Configure the Bold Data Hub to connect Salesforce

  1. To start, Click the Bold Data Hub icon on the Navigation Pane.

Salesforce Bold Data Hub - Bold BI

  1. Click Add Pipeline and provide the name for the new pipeline.

Salesforce Bold Data Hub - Bold BI

  1. Select the newly created pipeline and then double click the Salesforce Connector, from the list of available connectors and add template popup appears.

Salesforce Data Hub - BoldBI

There are two methods to get authenticated for using Salesforce:

  1. OAuth
  2. Basic Auth

For OAuth Authentication

  1. Click the Configure OAuth button. A Popup appears enter client id and client secret button and Click Ok button.

Salesforce - BoldBI

  1. Now You will be redirected to the salesforce authentication page.
  2. Once the redirection is completed. The Salesforce template is added with client Id and secret.

Salesforce - BoldBI

For Basic Auth

  1. Double click the Salesforce Connector, from the list of available connectors and a popup appears.
  2. Choose the Basic Auth option and click add template button.

Salesforce - BoldBI

  1. Update the necessary details in the YAML template in the template. Also, Update the resources on the select property and Click Save, choose the desired destination to save the pipeline.

Salesforce Data Hub - BoldBI

  1. Creating a Pipeline in Bold Data Hub automatically creates a Data Source in Bold BI. The Bold BI Data Source is a live data source to the destination database used in Bold Data Hub. For more information on the relationship between Bold Data Hub Pipeline and the associated Data Sources in Bold BI , please refer to Relationship between Bold Data Hub Pipeline and Associated Data Sources in Bold BI
The available resources are supported in Salesforce
- User
- UserRole 
- Lead
- Contact 
- Campaign 
- Product2 
- Pricebook2
- PricebookEntry
- Opportunity
- OpportunityLineItem
- OpportunityContactRole
- CampaignMember
- Account
- CampaignMember
- Task
- Event

Warning:

1. The `Encrypt_Credentials` property should be set to false when updating the new access token on the template. If you have modified other properties, such as 'select' or 'account id', the `Encrypt_Credentials` property must be set to true.  
2. The default lifetime of the access token is 1 hour. Therefore, you need to convert it to a long-lived access token to use the same token for 60 days. Existing tables should be maintained even if the token has expired or is being used as an invalid token. 

Schedule Bold Data Hub Job

  1. To configure interval-based scheduling, click on the schedules tab and select the created pipeline and click on the schedule icon and configure it.

Salesforce - Bold BI

Salesforce - Bold BI

  1. For on-demand refresh, click Run Now button.

Salesforce - Bold BI.

  1. The Schedule history can be checked using the history option as well as logs.

Salesforce - Bold BI

  1. Click on Logs to see if the run is completed and data source is created in Bold BI.

Salesforce - Bold BI

  1. Click Edit DataSource Option to view the created tables.

Related pages: Data Connectors | Previous: PythonScript | Next: Salesforce Reports