Establish connectivity to Salesforce Reports

This article describes how to connect to Salesforce using Salesforce Reports plugin in order to load data into Datasets and Reports in Metric Insights.


Our plugin currently supports functioning with Salesforce Classic UI, so make sure that the User account has Salesforce Classic UI enabled on the Salesforce site.

General instructions on setting up data sources based on plugins can be found in Create a New Plugin Data Source.

1. Access Admin > Data Sources

[+ New Data Source].


2. "Select the Type of New Data Source" pop-up opens

  1. Select "Other" and choose "Salesforce Reports" from the drop-down list

Next step.

3. Provide Required and Optional Parameters

  1. Data Source Name: will default but you may modify it
  2. Client id: enter the API key value ("Consumer Key" in Salesforce) that is used for OAuth 2 authorization of connected Apps
  3. Client secret: enter the API key value ("Consumer Secret" in Salesforce) that is used for OAuth 2 authorization of connected Apps
  4. Token: enter the security token provided by Salesforce
  5. Username / Password: note that your Username must be in the same format that your Salesforce server uses for authentication
  6. Optionally, specify the name of your custom Salesforce Server that you want to use instead of a default
  7. Test connection (this will also save your entries)


3.1. Where to find Consumer Key and Consumer Secret in Salesforce (Classic UI)
  1. Go to Build > Create > Apps
  2. Connected Apps > Open the App link
  3. In the API section, copy Consumer Key
  4. Click the link to reveal and copy Consumer Secret
3.2. How to obtain a security Token in Salesforce
  1. Go to My Settings
  2. Under Personal, select Reset My Security Token
  3. Click [Reset Security Token]
    • Clicking the button invalidates your existing token. After resetting your token, it will sent to your email

4. Advanced Configuration

  1. Generate Object List: This setting influences options available in the Salesforce Reports Objects tab:
    • automatically:
      • In the Adobe Analytics Objects tab click Refresh list to refresh/add all Objects currently in the BI system
      • [New in 5.3.2] Object List Refresh Trigger will appear allowing you to schedule the Refresh function to run automatically (Optional)
    • manually:
      • Reports must be added one-by-one or via CSV file in the Salesforce Reports Objects tab
  2. Object Selection Method: specify how Salesforce Reports will be fetched
  3. Optionally, state the maximum number of concurrent Threads to utilize during data and/or image fetch to be used in background processing when the system updates Reports for this Data Source
    1.  If you do not specify any value for this setting, batch data collection processing will be single-threaded

5. Obtain a list of External Reports

  1. Go to Salesforce Reports Objects tab
  2. To obtain a list of External Reports, click the [Refresh list] button

5.1. Troubleshoot 4xx errors when getting External Reports List

A comprehensive list of Status Codes and Error Responses is provided by Salesforce REST API Developer Guide.


  • When trying to establish connection with Salesforce via the corresponding plugin connection profile, you might get 4xx client errors caused by security constraints.
  • In order to alleviate the problem of authorization, you may need to relax IP restrictions in Salesforce.

For reference, see instructions below.

  1. To access Connected Apps:
    • From the Homepage, go to Setup
    • In the Left Side menu, find the Build section
    • Expand Create to reveal the list of Apps
    • Move down to Connected Apps
  2. Next to the Connected App name, click [Manage] 
  3. On the Detail page, click [Edit Policies]
  4. On the Edit page, for IP Relaxation select Relax IP restrictions under "OAuth policies"

6. Other Settings

  1. You can create Datasets or Elements directly from the respective tabs
  2. Click Permissions to assign use of this Plugin to Groups or Power Users