Component family |
Business/Cloud |
|
Function |
tSalesforceInput connects to an |
|
Purpose |
Allows to extract data from a Salesforce DB based on a |
|
Basic settings |
Property type |
Either Built-in or Repository. Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Click this icon to open a connection wizard and store the Excel For more information about setting up and storing file connection |
|
|
Use an existing |
Select this check box and in the Component List click the NoteWhen a Job contains the parent Job and the child Job, Component |
|
Query mode |
Two options are available: Query |
|
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 |
|
Timeout (milliseconds) |
Type in the intended number of query timeout in Available when Query is selected |
|
Module |
Select the relevant module in the list. NoteIf you select the Custom |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
In this component the schema is related to the Module Warning
To retrieve a column from a linked
|
|
Query condition |
Type in the query to select the data to be extracted. Example: |
|
Maunal input of SOQL query |
Select this check box to display the Query field where you can manually enter the desired |
|
Query all records (include deleted records) |
Select this check box to query all the records, including the Available when Query is selected |
Advanced settings |
Batch Size |
Number of registrations in each processed batch. Available when Query is selected |
|
Use Socks Proxy |
Select this check box if you want to use a proxy server. Once |
|
Normalize delimiter (for child relationship) |
Characters, strings or regular expressions used to normalize the Available when Query is selected |
|
Column name delimiter (for child relationship) |
Characters, strings or regular expressions used to separate the Available when Query is selected |
|
Use Soap Compression |
Select this check box to activate the SOAP compression. NoteThe compression of SOAP messages optimizes system performance, |
|
Output Http Trace Message |
Select this check box to output the HTTP trace message. Available when Bulk Query is |
|
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
|
Client ID |
Set the ID of the real user to differentiate between those who use Available when Query is selected |
Global Variables |
NB_LINE: the number of rows read by an input component or 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 |
Usually used as a Start component. An output component is |
|
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 |
n/a |
This scenario describes a four-component Job used to extract specific sets of data
from parent and child objects in a Salesforce database.
-
Drop two tSalesforceInput components and
two tLogRow components onto the workspace. -
Connect each tSalesforceInput component
to a tLogRow component using a Row > Main
connection for each pair. -
Connect tSalesforceInput_1 to tSalesforceInput_2 using an OnSubjobOk connection.
-
Double-click tSalesforceInput_1 to set
its Basic Settings in the Component tab. -
Enter the Salesforce WebService URL of
the database you want to connect to in the corresponding field. -
Enter your authentication information in the corresponding Username and Password fields.
-
Enter the desired query Timeout
(milliseconds) limit.
-
Select the Module (salesforce object) you
want to query. -
Select the Manual input of SOQL Query
check box and enter your query scripts in the enabled Query field.The query scripts you enter should follow the SOQL syntax.
-
Select Built-In as the Schema and click […] next to Edit schema
to open the schema editor.In this example, the IsWon and
FiscalYear columns in the query are located in the
Opportunity module specified. The
Name column is in a linked module called
Account. To return a column from a linked module
the correct syntax is to enter the name of the linked module, followed by
the period character, then the name of the column of interest. Hence, the
query required in this example is:"SELECT IsWon, FiscalYear, Account.Name FROM
.
Opportunity" -
Click the plus button to add a new column for the fields taken from the
Name column in the Account
module. -
Name this column Opportunity_Account_Name and click
OK to save the changes.Warning
To retrieve a column from a linked module, it is
necessary to define the column in a particular manner in
the Edit schema view. The
correct syntax is:
NameofCurrentModule_NameofLinkedModule_NameofColumnofInterest
.
Hence, in this example, the column must be named:
Opportunity_Account_Name. If this syntax is not respected then the
data from the linked table will not be returned.
-
Double-click tSalesforceInput_2 to set
its Basic settings in the Component tab. -
Enter the Salesforce WebService URL of
the database you want to connect to in the corresponding field.The query scripts you enter must follow the SOQL syntax.
-
Enter your authentication information in the corresponding Username and Password fields.
-
Enter the desired query Timeout
(milliseconds) limit.
-
Select the Module (salesforce object) you
want to query. -
Select the Manual input of SOQL Query
check box and enter your query scripts in the enabled Query field.In this example we want to extract the Id and
CaseNumber fields from the
Case module as well as the
Name fields from the Account
module. The query is therefore: ."SELECT Id, CaseNumber, Account.Name FROM Case"
-
Select Built-In as the Schema and click […] next to Edit schema
to open the schema editor. -
Click the plus button to add a new column for the fields taken from the
Name column in the Account
module. -
Name this column Case_Account_Name and click
OK to save the changes.