Setup a Salesforce Connection using Salesforce Connection Manager

SSIS Integration Toolkit Salesforce Connection Manager is an SSIS connection manager that can be used to establish connections with Salesforce Server. 

Salesforce connection manager allows you to specify how you want to connect to Salesforce.com. 

To add a Salesforce connection to your SSIS package, right-click in Connection Managers area, and choose "New Connection..." from the context menu. You will be prompted the following window, where you can choose "Salesforce (KingswaySoft)" or "Salesforce" (deprecated) item to add the connection.

New Connection

Add Salesforce Connection Manager

Note that since v7.0 release, you can see two Salesforce connection managers available from us in the list. We recommend you use the "Salesforce (KingswaySoft)" one to avoid any potential conflicts with other vendor solutions. The two connection manager types work exactly the same, but the "Salesforce" one is now considered a deprecated connection after v7.0 release.

Salesforce Connection Manager contains the following four pages which configure how to connect to Salesforce.com service.

  • Connection
  • Proxy Server
  • Optional Settings
  • More Info

Connection page

The Connection page of Salesforce Connection Manager allows you to specify the general settings of the connection.

Salesfoce Connection Manager

Service Endpoint

The Service Endpoint option allows to specify the API you want to connect to Salesforce with. There are two options available:

  • SOAP
  • REST
Instance Type

Instance Type option allows to specify what Salesforce instance you are connecting to. There are three options available.

  • Production
  • Sandbox
  • Other

For the first two options, we will automatically populate the Service URL option below. In the case the " Other" option is selected, you can specify an alternate Service URL which may not be a default one. This can be used for the case that you are connecting to a special Salesforce deployment including the situation that you use your own custom domain for Salesforce access.

Service URL

Using this option, you can provide an alternate URL that will be used to post transactions to your Salesforce instance. This field is only available when the Instance Type option above has been selected as "Other", for the other two options (Production and Sandbox), the Service URL is automatically populated using a default value.

Service Timeout (secs)

Timeout (secs) option allows you to specify the maximum number of seconds that Salesforce connection manager will wait while trying to establish a connection with Salesforce service. 

User Name

User Name option allows you to specify the user account used to connect to Salesforce.com for your integration purpose.

Password (Available only with SOAP Service Endpoint)

Password option allows you to specify a password for the above user in order to be able to login to Salesforce.com service.

Note: The Password is not included in the connection manager's ConnectionString property by default. This is by design for security reason. However, you can include it in your ConnectionString if you want to parameterize your connection manager. The format would be Password=myPassword;  (make sure you have a semicolon as the last character). It can be anywhere in the ConnectionString.

Security Token (Available only with SOAP Service Endpoint)

Security Token option is used to specify the security token that you have requested in Salesforce.com. If you do not have a security token yet, you must request one by resetting your security token. To do so, login to Salesforce.com, click Your Name | My Settings | Personal | Reset Security Token, and then click the Reset My Security Token button. The new security token is sent via email to the email address on your Salesforce user record. Note that there is no way to retrieve your security token from Salesforce. In case that you have lost it, you must request a new one by resetting it again. If you ever need to do so, make sure that you update the security token setting of any other applications that might be using the same authentication. 

Note: The Security Token is not included in the connection manager's ConnectionString property by default. This is by design for security reasons. However, you can include it in your ConnectionString if you want to parameterize your connection manager. The format would be SecurityToken=mySecurityToken;  (make sure you have a semicolon as the last character). It can be anywhere in the ConnectionString.

Authentication Type (Available only with REST Service Endpoint)

This option allows to specify the preferred type of authentication you want to use when connecting to Salesforce's REST API. There are two options available:

  • AuthorizationCode
  • Certificate
AuthorizationCode Authentication Type:
Get New Token

This button completes the OAuth authentication process in order to generate a new token.

Salesforce Connection Manager

  • Client Id: The Client Id option allows you to specify the unique ID which identifies the application making the request.
  • Client Secret: The Client Secret option allows you to specify the client secret belonging to your app.
  • Redirect Url: The Redirect Url option allows you to specify the Redirect Url to complete the authentication process.
Token Path

The path to the token file on the file system.

Token Password

The password to the token file.

Certificate Authentication Type:
Client Id

The Client Id option allows you to specify the unique ID which identifies the application making the request.

Certificate Thumbprint

The Certificate Thumbprint option is only available when the Certificate OAuth Type has been chosen, it allows you to specify the thumbprint of the certificate created for the application you have created.

User Name

User Name option allows you to specify the user account used to connect to Salesforce.com for your integration purpose.

Authorize Button

By clicking the Authorize button, it will pops up a window to help you authorize the application to access your Salesforce data. All you need to do is to provide the Redirect URL depending on client application.

Test Connection

After you have provided all connection information, you may click "Test Connection" button to test if you can successfully login to Salesforce.com. 

Proxy Server page

The Proxy Server page of Salesforce Connection Manager allows you to specify a proxy server in order to connect to Salesforce service.

Salesfoce Connection Manager

Proxy Mode (since v6.0)

Proxy Mode option allows to specify how you want to configure the proxy server setting. There are three options available.

  • No Proxy
  • Auto-detect (Using system configured proxy)
  • Manual
Proxy Server

Using Proxy Server option, you can provide a proxy server to connect to Salesforce.com.

Port

The Port option allows you to specify the port number of the proxy server for the connection.

Username (Proxy Server Authentication)

Username option (under Proxy Server Authentication) allows you to specify the proxy user account.

Password (Proxy Server Authentication)

Password option (under Proxy Server Authentication) allows you to specify the proxy user's password.

Note: The Proxy Password is not included in the connection manager's ConnectionString property by default. This is by design for security reasons. However, you can include it in your ConnectionString if you want to parameterize your connection manager. The format would be ProxyPassword=myProxyPassword;  (make sure you have a semicolon as the last character). It can be anywhere in the ConnectionString.

Advanced Settings page

The Advanced Settings page of Salesforce Connection Manager allows you to specify some advanced options when connecting to Salesforce service.

Salesfoce Connection Manager
Allow Save on Duplicate

When this option is enabled, the service calls made to Salesforce will contain a header option which indicates that duplicates are allowed.

Allow Field Truncation

When this option is enabled, the service calls made to Salesforce will contain a header option which indicates that field truncation is allowed.

Assignment Rule

Using this option, you can specify the assignment rule to be fired when lead or case is created using Salesforce destination component. The input of this field should be the ID of the assignment rule in Salesforce. You can get an assignment rule's ID by navigating to the assignment rule record in Salesforce, the ID should be the last part of the URL, which generally consists of 18 characters. 

Use Default Assignment Rule (since v8.0)

This option allows you to use default (active) assignment rule for a Case/Lead or apply all territory assignment rules to Account.

Retry on Intermittent Errors

This is an option designed to help recover from possible intermittent outages or disruption of service so the integration does not have to be stopped because of such temporary issues. Enabling this option will allow service calls to be retried upon certain types of failure. A service call may be retried up to 3 times before an exception is fired. Retries occur after 0 seconds, 15 seconds, and 60 seconds.

Warning: Although we have designed our retry feature carefully so that the retry should only happen when it is deemed to be safe to do so. However, in some occasions, such retry service calls could result in the creation of duplicate data.

Request Limits (24-hour period)

Using this option, you can specify how many API requests that the toolkit can send to Salesforce.com in a 24-hour period of time. When the limit is reached by a Salesforce source component, it will report a warning message indicating the limit has been reached. When the limit is reached by a Salesforce destination component, it may behave differently depending on how you have setup Error Handling for the destination component. It may fail the entire component, or redirect the input rows to its error output.

More Info page

More Info page shows some basic information about the toolkit. In this page, you can find the version information of the toolkit.

Salesfoce Connection Manager