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.
Access Admin > Collection & Storage > Data Sources
- [+ New Data Source]
- Choose "Salesforce Reports" from the Other drop-down list
- [Next Step]
- Enter a descriptive phrase in Data Source Name
- Enter Salesforce Client ID
- Provide Salesforce Client Secret
- Input Salesforce Username
- Provide Salesforce Plugin Password
Optionally, toggle on Enable On-Demand Element Creation
The following parameters are used for OAuth 2 authorization of connected Apps:
- Client id = Consumer Key in Salesforce
- Client secret = Consumer Secret in Salesforce
You can obtain them from your organization's Salesforce account. See more details in sections below.
Specify the name of your custom Salesforce Server that you want to use instead of the default one
Advanced Configuration settings can be set to default values unless Data Source requires more precise tuning. For more details on how to proceed, refer to Advanced Data Source Configuration.
[Test Connection] in the upper right corner
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.
- 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
- Next to the Connected App name, click [Manage]
- On the Detail page, click [Edit Policies]
- On the Edit page, for IP Relaxation select Relax IP restrictions under OAuth policies