Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Info
titleINFO
Salesforce is an enterprise cloud computing firm. It specializes in social and mobile cloud technologies, including sales and CRM applications helping companies connect with customers, partners, and employees.


Prerequisites


Info
titleINFO
Make sure you have your Salesforce instance configured accordingly. Datameer will retrieve the data with an OAuth token - without revealing a username and a password to Datameer X.

To prepare your Salesforce instance:

  1. Login as an Admin or ask an authorized person to execute the setup.
  2. Create a new 'Connected App'. The steps differ depending on whether you us an old or a new Salesforce Interface:
    - Old UI: "Built" → "Create" → "Apps" → "Connected Apps" → "New"
    - New UI: "Platform Tools" → "Apps" → "Connected Apps" → "App Manager" → "New Connected App"
  3. Switch to the "API (Enable OAuth Settings)" section and tick the "Enable OAuth Settings" checkbox.  
  4. Set the Callback URLs (Datameer Application Server URL):

    Code Block
    http://<datameer application server hostname>:<port>/properties/external-callback-button
    https://<datameer application server hostname>:<port>/properties/external-callback-button


  5. Add the following OAuth scopes:
    - Full Access
    - Manage Use Data via Web Browsers
    - Platform Requests at Any Time
  6. Leave all the rest default parameters and save the settings.
  7. Open this Connected App settings and pick up its client ID and client secret values. 

To prepare your Datameer X instance:

  1. Open the 'live.properties" file under '/<Datameer installation folder>/conf/live.properties' and add the following lines at the end:

    Code Block
    #Salesforce Connectetd Apps details for get OAuth token
    system.property.webservice.salesforce.oauth.client-id=<client-id of the Saleforce Connected App>
    system.property.webservice.salesforce.oauth.client-secret=<client-secret of the Saleforce Connected App>


  2. Restart Datameer X. 

Configuring Salesforce as a Connection

...

Info
titleINFO

You can use custom properties to modify the importing process to your needs.


Custom PropertyExample ValueDefault ValueDescription
datameer.plugin-webservice.read-timeout.ms120000 (~2 minutes)120000
  • sets a HTTP response data read timeout
datameer.salesforce.maxrecords-per-result-request600000determined by the Salesforce API endpoint
  • specifies the maximum number of records within a batch
datameer.salesforce.max-parallel-result-request21
  • specifies the maximum number of batches, that are fetched in parallel

Importing Data with the Salesforce Connector

...