tNetsuiteInput
specify.
tNetsuiteInput Standard properties
These properties are used to configure tNetsuiteInput running
in the Standard Job framework.
The Standard
tNetsuiteInput component belongs to the Business and the Cloud families.
The component in this framework is available in all Talend
products.
Basic settings
Connection Component |
Select a tNetsuiteConnection component to reuse its With a tNetsuiteConnection selected, the settings |
Endpoint |
Enter the WebService URL required to connect to the |
API version |
Select the version of the NetSuite API you are connecting to. As of version 7.1, API versions 2014.2 and 2016.2 have been |
E-mail and Password |
Enter your user credentials to access the To enter the password, click the […] button next to the |
Role |
Enter your NetSuite role ID. |
Account |
Enter your NetSuite web services account number (also called account |
Application ID |
Enter the NetSuite application ID generated for your account. An application ID is required starting from NetSuite version 2015 and |
Record Type |
Click the […] button next to |
Schema and Edit schema |
A schema is a row description. It defines the number of fields |
 |
Built-In: You create and store the schema locally for this component |
 |
Repository: You have already created the schema and stored it in the |
 |
Click Edit
Warning:
The schema of this component is dynamically filled with columns |
Search conditions |
Define search conditions to match fields for data
|
Advanced settings
Body fields only |
Select this check box to retrieve only body fields. Clear this check box to retrieve body fields and sublist values. |
Enable customizations |
Select this check box to instruct the component to retrieve This option is enabled by default. You can disable it if you don’t need |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at the Job level |
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After
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 |
Usage
Usage rule |
This component is usually used as a start component in a |
Handling data with NetSuite
This scenario describes a Job that reads data from NetSuite, transforms the
data and writes the transformed data to NetSuite, finally displays the transformed data on the
console.
Adding the components
design workspace or dropping them from the Palette:
-
two tNetsuiteInput components: to read data that matches
the specified search criteria from the NetSuite server. -
a tMap component: to transform the input data to the
output structure. -
a tNetsuiteOutput component: to write the transformed
data into the NetSuite server. -
a tLogRow component: to display the data received from
the NetSuite server.
Configuring and linking the components
Reading, transforming, and writing data in NetSuite
-
Double-click the first tNetsuiteInput to open its Basic
settings view. -
In the Endpoint,
API version, E-mail, Password,
Role, Account, and Application ID fields,
enter the information required to access NetSuite. -
Click the […] button next to the Record Type field, and from the dialog box that
opens select Location to read the
location type information from NetSuite.The schema corresponding to the location record type is automatically
retrieved. -
Define a search condition.
-
Click the [+] button below the
Search conditions table to
add one row. -
Click the cell of the Field
column and select internalId from
the drop-down list. -
Click the cell of the Operator
column and select List – Any Of
from the drop-down list. -
In the cell of the Value column,
enter java.util.Arrays.asList(“1”) to retrieve
only the record whose internalId
is set to 1.
-
Click the [+] button below the
-
Connect the first tNetsuiteInput to tMap
using a Row > Main connection. -
Double-click tNetsuiteOutput to open its Basic
settings view. -
In the Endpoint,
API version, E-mail, Password,
Role, Account, and Application ID fields,
enter the information required to access NetSuite. -
In the Action list, select insert to insert the transformed data into
NetSuite. -
Click the […] button next to the Record Type field, and in the dialog box that
opens select Location to write the
location type information into NetSuite. -
Click the […] button
next to Edit schema to open the schema
editor. You can see the schema has already been prefilled. Keep only the columns
that are relevant to your operation and delete others. In this example, keep the
column Name, Parent, IncludeChildren, IsInactive, TranPrefix, Logo, MakeInventoryAvailable, MakeInventoryAvailableStore, CustomFieldList,
and ExternalId. -
Connect tMap to
tNetsuiteOutput using a Row > *New Output*
(Main) connection. In the pop-up dialog box, enter the name of
the output connection, out in this example. Then click
Yes to let tMap get the schema of the target component tNetsuiteOutput. -
Double-click tMap to
open its Map Editor and configure data
flow mappings.-
In the out output table, set the value of the
Name column by entering “Paris” in the corresponding Expression column field. -
Drag and drop the Parent column in the row1 input table onto the Expression column of the corresponding
row in the out output table. -
Do the same to drag and drop other columns IncludeChildren, IsInactive, TranPrefix, Logo, MakeInventoryAvailable, MakeInventoryAvailableStore, CustomFieldList, and ExternalId in the
row1 input table onto the Expression column of the corresponding
row in the out output table.
-
In the out output table, set the value of the
Retrieving the transformed data from NetSuite
-
Double-click the second tNetsuiteInput to
open its Basic settings view. -
In the Endpoint,
API version, E-mail, Password,
Role, Account, and Application ID fields,
enter the information required to access NetSuite. -
Click the […] button next to the
Record Type field, and from the
dialog box that opens select Location to
read the location type information from NetSuite.The schema corresponding to the location record type is automatically
retrieved. -
Define a search condition.
-
Click the [+] button below the
Search condition table to add
one row. -
Click the cell of the Field
column and select name from the
drop-down list. -
Click the cell of the Operator
column and select String –
Contains from the drop-down list. -
In the cell of the Value column,
enter Paris to retrieve only the record whose
name contains Paris.
-
Click the [+] button below the
-
Double-click tLogRow to open its Basic settings view.
-
In the Mode area, select Vertical (each row is a key/value list) for better
readability of the result. -
Connect the second tNetsuiteInput to
tLogRow using a Row > Main connection. -
Connect the first tNetsuiteInput to the
second tNetsuiteInput using a Trigger > OnSubjobOk connection.
Saving and executing the Job
- Press Ctrl + S to save the Job.
-
Press F6 or click Run on the Run tab to run the
Job.As shown above, the data has been transformed and written into NetSuite, then
the transformed data is retrieved from NetSuite and displayed on the
console.