Salesforce API

Overview

These public interfaces are used in Salesforce components. They are provided for implementing advanced functionality in your scripts. In order for you to use these interfaces in your project, you have to reference CozyRoc.SSISPlus.dll library. Also include use of Sforce.Service namespace.

ISforceConnection

When you call Salesforce Connection Manager AcquireConnection method, it returns object implementing ISforceConnection interface. This is the interface used for interaction with Salesforce service.

Connect method

Connects to Salesforce service. The result is SforceService object.

Close method

Closes the connection to Salesforce service. Use always after you finish working with the service.

IsConnected method

Returns true if connected to the service.

ServerUser property (string)

Specify user name to access the Salesforce service.

ServerPassword property (string)

Specify user password to access the Salesforce service.

ServerTimeout property (int)

Specify the number of seconds before timing out session connect. The default value of this property is 60 seconds.

RetainSameConnection property (bool)

Specify if all clients should use the same connection. This property has the options listed in the following table.

Value Description
True All clients use same connection (default).
False Every client uses different connection.
OrganizationId (1.6 SR-3)

Specify the ID of the organization against which you will authenticate Self-Service users.

PortalId (1.6 SR-3)

Specify the ID of the portal for this organization.

ServerUrl property (string) (1.4 SR-1)

Specify Salesforce service URL. This property should be explicitly specified when doing sandbox testing.

ProxyHost property (string) (1.4 SR-3)

Specify the name or IP address of the proxy server.

ProxyPort property (int) (1.4 SR-3)

Specify the port number on the proxy server to use for the connection.

ProxyUser property (string) (1.4 SR-3)

Specify user name to access the proxy server.

ProxyPassword property (string) (1.4 SR-3)

Specify password to access the proxy server.