# tNetSuiteInput (v2019/2021/2025)

Invokes the NetSuite SOAP service and retrieves data according to the conditions you specify by leveraging NetSuite v2019/2021/2025 features.

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

## tNetSuiteInput (v2019/2021/2025) Standard properties

These properties are used to configure tNetSuiteInput running in the Standard Job framework.

The Standard tNetSuiteInput component belongs to the Business family.

The component in this framework is available in all subscription-based Talend products.

Information noteNote:

* This component is named tNetSuiteV2019Input if you do not install the 8.0.1-R2023-02 Talend Studio monthly update or a later one delivered by Talend.
* This component is incorporated into the tNetSuiteInput component if you have installed the 8.0.1-R2023-02 Talend Studio monthly update or a later one delivered by Talend. To access this component in this case, select NetSuite SOAP from the Version drop-down list in the Basic settings view of the tNetSuiteInput component and click Apply. For more information, check with your administrator.

## Basic settings

| Properties | Description |
| --- | --- |
| Version | Select the NetSuite component you want to use from the drop-down list:<br>NetSuite Deprecated for the NetSuite version 2019 component<br>and Netsuite SOAP for the NetSuite version 2019/2021/2025<br>component.<br><br>Click the Apply button to validate your<br>selection.<br><br>Information noteNote: The Version drop-down list and the<br>Apply button are available only when you have installed<br>the 8.0.1-R2023-02 Talend Studio<br>monthly update or a later one delivered by Talend. For more information, check with your administrator. |
| Use an existing connection | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined. |
| Property Type | Select the way the connection details<br>will be set.<br><br><ul> <li> <p> <span>Built-In</span>: The connection details will be set                                locally for this component. You need to specify the values for all                                related connection properties manually.</p> </li> <li> <p> <span>Repository</span>: The connection details stored                                centrally in <span><span>Repository</span><abbr> &gt; </abbr><span>Metadata</span></span> will be reused by this component. </p> <p>You need to click                                the <span>[...]</span> button next to it and in the pop-up                                    <span>Repository Content</span> dialog box, select the                                connection details to be reused, and all related connection                                properties will be automatically filled in.</p> </li> </ul> |
| Schema and Edit schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br><br>Built-In: You create and store the schema locally for this component<br>only.<br><br><br>Repository: You have already created the schema and stored it in the<br>Repository. You can reuse it in various projects and Job designs.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul><br><br>Information noteWarning:<br><br>The schema is created based on the<br>NetSuite service fields (which vary with the Record type<br>selected) when you click Guess schema. For a<br>schema created in this way, you can remove schema columns that are<br>not needed. However, to avoid possible execution errors, do not try<br>to rename any schema columns. |
| Guess schema | Click this button to retrieve the schema from the data object specified.<br><br>Information noteNote: Make sure you have set the record type in Record<br>type before clicking this button. |
| API version | Select the version of the NetSuite API you are connecting to. |
| Account | Enter your NetSuite web services account number (also called account ID). |
| Login type | Select the login type: Basic or Token-based. |
| E-mail and Password | Enter your user credentials to access the NetSuite SOAP service.<br><br>To enter the password, click the [...] button<br>next to the Password field to bring out the Enter a new<br>password dialog box, enter the password in the text field, and click<br>OK. Note that you can enter the password either in a JSON string<br>in the pure password mode or as a Java expression in the Java<br>mode. You can toggle between the two modes by clicking switch to<br>Java mode or switch to pure password mode on the top<br>of the text field.<br><br>Information noteNote:<br><br><ul> <li>The two password modes are available only when you have installed the                  8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>. For more information, check with your administrator.</li> <li>If the 8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>                  is not installed, you can enter passwords in the <span>Java mode</span>                  only. </li> </ul><br><br>These two fields are available when Basic is selected from the Login type drop-down list. |
| Role ID | Enter your NetSuite role ID.<br><br>This field is available when Basic is selected from the Login type drop-down list. |
| Application ID | Enter the NetSuite application ID generated for your account.<br><br>An application ID is required starting from NetSuite version 2015 and above. You can find your application ID or create a new one on NetSuite's Manage Integration page.<br><br>This field is available when Basic is selected from the Login type drop-down list. |
| Consumer key and Consumer secret | Enter the consumer key and consumer secret generated in your NetSuite account.<br><br>To enter the consumer secret, click the [...] button<br>next to the Consumer secret field to bring out the Enter a new<br>password dialog box, enter the consumer secret in the text field, and click<br>OK. Note that you can enter the consumer secret either in a JSON string<br>in the pure password mode or as a Java expression in the Java<br>mode. You can toggle between the two modes by clicking switch to<br>Java mode or switch to pure password mode on the top<br>of the text field.<br><br>Information noteNote:<br><br><ul> <li>The two password modes are available only when you have installed the                  8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>. For more information, check with your administrator.</li> <li>If the 8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>                  is not installed, you can enter consumer secrets in the <span>Java                     mode</span> only. </li> </ul><br><br>These two fields are available when Token-based is selected from the Login type drop-down list. |
| Token ID and Token secret | Enter the token ID and token secret generated in your NetSuite account.<br><br>To enter the token secret, click the [...] button<br>next to the Token secret field to bring out the Enter a new<br>password dialog box, enter the token secret in the text field, and click<br>OK. Note that you can enter the token secret either in a JSON string<br>in the pure password mode or as a Java expression in the Java<br>mode. You can toggle between the two modes by clicking switch to<br>Java mode or switch to pure password mode on the top<br>of the text field.<br><br>Information noteNote:<br><br><ul> <li>The two password modes are available only when you have installed the                  8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>. For more information, check with your administrator.</li> <li>If the 8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>                  is not installed, you can enter token secrets in the <span>Java mode</span>                  only. </li> </ul><br><br>These two fields are available when Token-based is selected from the Login type drop-down list. |
| Record type | Click the [...] button next to the field to open a dialog box, and then select a record type you want to retrieve or select the Use custom object check box and specify a custom record type in the Object Name field. |
| Search conditions | Define search conditions to match fields for data retrieval. Click the<br>[+] button to add as many rows as you<br>need, each row for a condition, and define each of your conditions:<br><br><ul> <li> <p> <span>Field</span>: Select a field to search                           based on the condition.</p> </li> <li> <p> <span>Operator</span>: Enter an operator for                           the field search condition. Check <a href="https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3471338.html" target="_blank">Platform Enumerations</a> for a full list of                           supported search operators.</p> <div><span>Information note</span><span>Note:</span> Search operators are case-sensitive.</div> </li> <li> <p> <span>Search value</span>: Enter the value for                           the field search condition.</p> </li> <li> <p> <span>Additional search value</span>: Enter the                           second value for the field search condition, if relevant depending on the                           operator you select.</p> </li> </ul> |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this checkbox to gather the Job processing metadata at the Job level<br>as well as at each component level. |
| Set WSDL log level | Select the level of logging for the WSDL SOAP envelopes sent to NetSuite<br>when executing your Job. By default, logs are disabled.<br><br><ul> <li><span>Disabled</span>: No WSDL logging is performed. </li> <li><span>Debug</span>: Logs SOAP envelopes at the debug level (key                        debug information).</li> <li><span>Trace</span>: Logs SOAP envelopes at the trace level                        (detailed information, including request and response payloads).</li> </ul><br><br>If you select Debug or<br>Trace, ensure that the corresponding log level is<br>enabled in the Advanced settings of the<br>Run tab as well before executing your Job. If you<br>select a higher log level like Info in the<br>Run tab, the corresponding<br>Debug or Trace logs will not<br>be displayed in the Run console. |
| Enable customizations | Select this check box to instruct the component to retrieve customizations - custom record types and custom fields. With this option enabled, custom record types will be retrieved and can be selected in the Record Type dialog box, and custom fields will be retrieved and included into the schema.<br><br>This option is enabled by default. You can disable it if you don't need custom record types or custom fields.<br><br>Information noteNote: Transactional custom body fields for these transactions are not supported: *Assembly Unbuild*, *Bin Putaway Worksheet*, *Bin Transfer*, *Paycheck*, and *Work Order*. |
| Body fields only | Select this check box to retrieve only body fields; clear this check box to retrieve body fields and sublist values.<br><br>See [bodyFieldsOnly](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4170181850.html) for related information.<br><br>Information noteNote:<br><br><ul> <li>Be sure to clear this check box if you also want to retrieve sublist values                        in addition to values in the body fields.</li> <li>Selecting this check box improves the performance significantly.</li> </ul> |
| Page size | Enter the number of records to retrieve per page when the component reads<br>data from NetSuite.<br><br>The default value is 100. Increase this value to<br>reduce the number of SOAP requests for large datasets, or decrease it if your<br>NetSuite tenant has stricter limits.<br><br>Information noteNote: This option applies only to NetSuite SOAP components. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE:<br>the number of rows processed. This is an After variable and it returns an integer.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is usually used as a start component in a<br>Talend<br>flow and it requires an output component. |
| Limitation | The NetSuite components do not support the Microservice and OSGI build types<br>yet. |