Component family |
Business/Cloud |
|
Function |
tSalesforceConnection opens a |
|
Purpose |
The component enables connection to a Salesforce. |
|
Basic settings |
Property type |
Either Built-in or Repository
Built-in: No property data stored
Repository: Select the repository Since version 5.6, both the Built-In mode and the Repository mode are |
|
For salesforce bulk component |
Select this check box if you use bulk data processing components For more information on these bulk data processing components, |
|
Login Type |
Two options are available: Basic: select this option to log OAuth2: select this option to
|
Salesforce Webservice URL |
Enter the Webservice URL required to connect to the Salesforce |
|
Salesforce Version |
Enter the Salesforce version you are using. |
|
|
Username and |
Enter your Web service authentication details. To enter the password, click the […] button next to the |
|
Consumer Key and Consumer |
Enter your OAuth authentication details. Such information is To enter the consumer secret, click the […] button next For what a Connected App is, see Connected Apps. For how to create a Connected App, see |
|
Callback Host and Callback |
Enter your OAuth authentication callback URL. This URL (both host |
|
Token File |
Enter the token file name. It stores the refresh token that is |
|
Use Soap Compression |
Select this check box if you want to activate SOAP NoteThe compression of SOAP messages results in increased |
|
Timeout (milliseconds) |
Type in the intended number of query timeout in |
|
Output Http Trace Message |
Select this option to output the Http interactions on the Studio Available when For salesforce bulk |
|
Use Socks Proxy |
Select this check box if you want to use a proxy. Once selected, |
Advanced settings |
Client ID |
Set the ID of the real user to differentiate between those who use |
|
tStatCatcher Statistics |
Select this check box to collect the log data at a component |
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is normally used with Salesforce |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
Limitation |
Due to license incompatibility, one or more JARs required to use this component are not |
In this scenario, the OAuth2 (Open Authorization 2.0)
method is adopted to authorize tSalesforceConnection to
access the Salesforce.com resources. This way, better security is achieved as users do
not need entering their Salesforce username/password directly on tSalesforceConnection, which is required by the Basic login type instead.
-
Drop tSalesforceConnection, tFixedFlowInput and tSalesforceOutput onto the workspace.
-
Link tSalesforceConnection to tFixedFlowInput using the OnSubjobOk trigger.
-
Link tFixedFlowInput to tSalesforceOutput using a Row > Main
connection.
-
Double-click tSalesforceConnection to
open its Basic settings view. -
In the Login Type list, select OAuth2.
-
In the Consumer Key and Consumer Secret fields, enter the relevant
information. -
Double-click tFixedFlowInput to open its
Basic settings view.Select Use Inline Content (delimited
file) in the Mode
area. -
In the Content field, enter the data to
write to the Saleforce.com, for example:1Talend -
Double-click tSalesforceOutput to open
its Basic settings view. -
Select the Use an existing connection
option. -
In the Action list, select insert to insert the account name Talend.
-
In the Module list, select Account.
-
Click the Edit schema button to open the
schema editor. -
In the right panel, remove all the columns except Name.
-
Click to copy the column Name from right to left.
-
Click OK to validate the setup and close
the editor.
-
Press Ctrl + S to save the Job.
-
Press F6 to run the Job. The Studio
console gives the url (in yellow) for OAuth authorization. -
Copy the url to the browser’s address bar. The Salesforce.com login page
appears. -
Fill up the username and password and click Log in
to Salesforce.The authorization response is then shown on the browser at the callback
host. -
Now is the time for the sub-job to run.
As shown above, the Job is successfully executed.
-
Go to the Salesforce.com and check the Account module. We can find that
the account name Talend is
inserted.