connectToSalesforce

Syntax

connectToSalesforce(connectionName)

Description

Establishes a connection to Salesforce.

This is done using a connection that was previously defined and configured on the SFDC Configuration page.

All fields that describe a SFDC connection configuration are required.


 



Parameters

Parameter

Type

Required

Description

Parameter

Type

Required

Description

connectionName

string

Yes

The name of the Salesforce connection as defined in the SFDC Configuration page.

Return type

SFDCConnection - predefined structure type

Example

SFDCConnection conn = connectToSalesforce("SFDC_test"); logPrint("WARN", "Connected to SF: " + conn.instance_url + " - " + conn.access_token);

See also