Adapter Online Help > TDV NetSuite Adapter > Advanced Tab > Connection String Options
 
Connection String Options
The following is the full list of the options you can configure in the connection string for this provider.
 
The company account your username is associated with on NetSuite.
Indicating how aggregate columns should be treated.
As of version 2015.2, requests to NetSuite require an application ID or token-based authentication details.
The authentication secret used to request and obtain the OAuth Access Token.
The type of authentication to use when connecting to NetSuite.
The authentication token used to request and obtain the OAuth Access Token.
The OAuth callback URL to return to when authenticating. This value must match the callback URL you specify in your app settings.
A comma separated list of custom field permissions. Gives more control than IncludeCustomFieldColumns .
A password used to authenticate to a proxy-based firewall.
The TCP port for a proxy-based firewall.
The name or IP address of a proxy-based firewall.
The protocol used by a proxy-based firewall.
The user name to use to authenticate with a proxy-based firewall.
A boolean indicating if child tables should be displayed.
A boolean indicating if you would like to include custom field columns.
A boolean indicating if you would like to use tables based on custom lists.
A boolean indicating if you would like to use tables based on custom record types.
A comma separated list representing the columns to include when retrieving data from a field representing a record reference.
Set this property to initiate the process to obtain or refresh the OAuth access token when you connect.
A path to the directory that contains the schema files defining tables, views, and stored procedures.
Core modules to be included in the log file.
The maximum number of concurrent sessions available for use by the username specified in the connection.
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
A path to a directory to download metadata files from NetSuite. Set this for best performance.
The access token for connecting using OAuth.
The OAuth access token secret for connecting using OAuth.
The client Id assigned when you register your application with an OAuth authorization server.
The client secret assigned when you register your application with an OAuth authorization server.
The lifetime in seconds of the OAuth AccessToken.
The location of the settings file where OAuth values are saved when InitiateOAuth is set to GETANDREFRESH or REFRESH. Alternatively, this can be held in memory by specifying a value starting with memory://.
The Unix epoch timestamp in milliseconds when the current Access Token was created.
The verifier code returned from the OAuth authorization URL.
The other parameters necessary to connect to a data source, such as username and password, when applicable.
The number of results to return per page from NetSuite.
The password of the NetSuite user used to authenticate.
The authentication type to use to authenticate to the ProxyServer proxy.
This indicates whether to use the system proxy settings or not. Set ProxyAutoDetect to FALSE to use custom proxy settings. This takes precedence over other proxy settings.
A semicolon separated list of hosts or IPs that will be exempt from connecting through the ProxyServer .
A password to be used to authenticate to the ProxyServer proxy.
The TCP port the ProxyServer proxy is running on.
The hostname or IP address of a proxy to route HTTP traffic through.
The SSL type to use when connecting to the ProxyServer proxy.
A user name to be used to authenticate to the ProxyServer proxy.
You can use this property to enforce read-only access to NetSuite from the provider.
Indicates if doubles should be reported as decimal.
A boolean indicating if you would like to request memorized transactions when retrieving transactions from NetSuite.
The RoleId is the InternalId of the role that will be used to log in to NetSuite. Leave empty to use the user's default role.
The type of schema to use.
The certificate to be accepted from the server when connecting using TLS/SSL.
The value in seconds until the timeout error is thrown, canceling the operation.
A boolean indicating if you would like to use asynchronous services when inserting, updating, and deleting.
A boolean indicating if you would like to use internal names for customizations.
The user of the NetSuite account used to authenticate.
Your user timezone offset as defined in your NetSuite preferences under Home --> Preferences --> Time Zone. Ex: -8:00.
A boolean indicating if you would like to perform an upsert when an insert operation is used.
A boolean indicating if you would like to perform an upsert when an insert operation is used.
The version of the NetSuite API in usage. Defaults to 2017_1.
An optional override for the web service host such as webservices.na1.netsuite.com.
 
Account Id
The company account your username is associated with on NetSuite.
Data Type
string
Default Value
""
Remarks
Together with User and Password, this field is used to authenticate to NetSuite.
Aggregate Column Mode
Indicating how aggregate columns should be treated.
Data Type
string
Default Value
"Ignore"
Remarks
Aggregate columns are the columns that will appear on base tables which aggregate all of the data contained within child collections. Because these columns include all the data of a child collection, they can become very large. In some situations, such as writing the data to an offline database, it may be advisable to set AggregateColumnMode to either Ignore or List. The data in child tables can still be retrieved by setting IncludeChildTables to true. Setting AggregateColumnMode to List will still cause aggregate columns to be listed for use with inserts and updates.
 
Ignore
All aggregate will be ignored and will not show up as available colums in the table definition.
List
Aggregate columns will be listed in all tables, but on base tables such as SalesOrders, they will not retrieve data from NetSuite.
ListAndRetrieve
Aggregate columns will be listed and requested on all tables.
Application Id
As of version 2015.2, requests to NetSuite require an application ID or token-based authentication details.
Data Type
string
Default Value
""
Remarks
This field is used to authenticate to NetSuite. These IDs are different from application IDs created in versions 2015.1 and older. You can find your applications in the NetSuite UI under Setup > Integration > Manage Integrations. An application ID is set by default, but can optionally be specified.
Auth Key
The authentication secret used to request and obtain the OAuth Access Token.
Data Type
string
Default Value
""
Remarks
This property is required only when performing headless authentication in OAuth 1.0. It can be obtained from the GetOAuthAuthorizationUrl stored procedure.
It can be supplied alongside the AuthToken in the GetOAuthAccessToken stored procedure to obtain the OAuthAccessToken.
Auth Scheme
The type of authentication to use when connecting to NetSuite.
Data Type
string
Default Value
"Auto"
Remarks
Auto: Lets the driver decide automatically based on the other connection properties you have set.
Basic: Set this to use BASIC user / password authentication.
OAuth: Set to this to perform OAuth authentication. This is essentially token based authentication where the token is created on the fly instead of directly in the NetSuite UI.
Token: Set this to perform Token Based Authentication.
Auth Token
The authentication token used to request and obtain the OAuth Access Token.
Data Type
string
Default Value
""
Remarks
This property is required only when performing headless authentication in OAuth 1.0. It can be obtained from the GetOAuthAuthorizationUrl stored procedure.
It can be supplied alongside the AuthKey in the GetOAuthAccessToken stored procedure to obtain the OAuthAccessToken.
Callback URL
The OAuth callback URL to return to when authenticating. This value must match the callback URL you specify in your app settings.
Data Type
string
Default Value
""
Remarks
During the authentication process, the OAuth authorization server redirects the user to this URL. This value must match the callback URL you specify in your app settings.
Custom Field Permissions
A comma separated list of custom field permissions. Gives more control than IncludeCustomFieldColumns .
Data Type
string
Default Value
""
Remarks
This property may be set in addition to or instead of IncludeCustomFieldColumns. If you want use a role for authentication where the permissions allow for some custom fields but not others, this property can be used to specify which custom fields metadata should be requested for by the NetSuite Adapter. If this property is left empty, IncludeCustomFieldColumns will determine if all custom field metadata or no custom field metadata is requested. Otherwise this property will override the behavior of IncludeCustomFieldColumns.
For example, to specify all of the custom field permissions for all available tables, set this to:
Custom Body Fields, Custom Column Fields, Custom Entity Fields, Custom Event Fields, Custom Item Fields, Item Number Fields, Other Custom Fields
Firewall Password
A password used to authenticate to a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.
Firewall Port
The TCP port for a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.
Firewall Server
The name or IP address of a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling. Use ProxyServer to connect to an HTTP proxy.
Note that the adapter uses the system proxy by default. To use a different proxy, set ProxyAutoDetect to false.
Firewall Type
The protocol used by a proxy-based firewall.
Data Type
string
Default Value
"NONE"
Remarks
This property specifies the protocol that the adapter will use to tunnel traffic through the FirewallServer proxy. Note that by default the adapter connects to the system proxy; to disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.
 
Type
Default Port
Description
TUNNEL
80
When this is set, the adapter opens a connection to NetSuite and traffic flows back and forth through the proxy.
SOCKS4
1080
When this is set, the adapter sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted.
SOCKS5
1080
When this is set, the adapter sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes.
 
To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.
Firewall User
The user name to use to authenticate with a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication method specified in FirewallType.
Include Child Tables
A boolean indicating if child tables should be displayed.
Data Type
bool
Default Value
false
Remarks
If this is set to true, tables will be displayed for all child lists of a given entity. For instance, the CashRefund table in the NetSuite development environment has a child list called ItemList. Therefore, a new table called CashRefund_ItemList will be displayed if this property is set to true. This can be useful for listing each item in the list in its own row.
Include Custom Field Columns
A boolean indicating if you would like to include custom field columns.
Data Type
bool
Default Value
true
Remarks
Setting this to true will cause custom fields to be displayed directly on tables as their own rows. However, it will cause lower performance when retrieving the table metadata information for the first time on an open connection. Table metadata is stored on the connection and cleared when the connection is closed.
Include Custom List Tables
A boolean indicating if you would like to use tables based on custom lists.
Data Type
bool
Default Value
false
Remarks
Setting this to true will cause custom lists types to be included as their own tables. However, it will cause lower performance when retrieving the table metadata information for the first time on an open connection. Table metadata is stored on the connection and cleared when the connection is closed.
Include Custom Record Tables
A boolean indicating if you would like to use tables based on custom record types.
Data Type
bool
Default Value
true
Remarks
Setting this to true will cause custom record types to be included as their own tables. However, it will cause lower performance when retrieving the table metadata information for the first time on an open connection. Table metadata is stored on the connection and cleared when the connection is closed.
Include Reference Columns
A comma separated list representing the columns to include when retrieving data from a field representing a record reference.
Data Type
string
Default Value
"InternalId, Name"
Remarks
Many fields in NetSuite are references to other types of records. For instance, an Invoice might reference an Account and a Customer record. There are several pieces of data that can be returned by NetSuite when retrieving data from a record reference field. The available values are:
 
InternalId
The NetSuite foreign key for the record reference.
Name
A readable name for the record referenced.
Type
The type of record referenced. This is not always given a value as the given field may only have one type.
Initiate OAuth
Set this property to initiate the process to obtain or refresh the OAuth access token when you connect.
Data Type
string
Default Value
"OFF"
Remarks
The following options are available:
OFF: Indicates that the OAuth flow will be handled entirely by the user. An OAuthAccessToken will be required to authenticate.
GETANDREFRESH: Indicates that the entire OAuth Flow will be handled by the adapter. If no token currently exists, it will be obtained by prompting the user via the browser. If a token exists, it will be refreshed when applicable.
REFRESH: Indicates that the adapter will only handle refreshing the OAuthAccessToken. The user will never be prompted by the adapter to authenticate via the browser. The user must handle obtaining the OAuthAccessToken and OAuthRefreshToken initially.
Location
A path to the directory that contains the schema files defining tables, views, and stored procedures.
Data Type
string
Default Value
""
Remarks
The path to a directory which contains the schema files for the adapter (.rsd files for tables and views, .rsb files for stored procedures). The Location property is only needed if you would like to customize definitions (e.g., change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.
The schema files are deployed alongside the adapter assemblies. You must also ensure that Location points to the folder that contains the schema files. The folder location can be a relative path from the location of the executable.
Log Modules
Core modules to be included in the log file.
Data Type
string
Default Value
""
Remarks
Only the modules specified (separated by ';') will be included in the log file. By default all modules are included.
Maximum Concurrent Sessions
The maximum number of concurrent sessions available for use by the username specified in the connection.
Data Type
string
Default Value
"0"
Remarks
As of version 2020.1, this value will be obtained automatically based on your AccountId and ApplicationId. Concurrent sessions as of NetSuite 2020.1 are only possible with token based authentication. User / password will always resolve to only a single session available.
NetSuite in general allows a maximum of 5 concurrent sessions, although a higher level may be purchased. Additional requests made that exceed the concurrent session limits of the account or integrated app being used to connect will result in a error. The NetSuite Adapter attempts to account for this automatically by witholding additional requests that would receive an error if it sees too many concurrent requests are already being made.
You can set the maximum number of concurrent sessions available if you your account has a higher amount available. However, if Version is set to 2020_1 or higher, this property will be ignored.
Max Rows
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Data Type
int
Default Value
-1
Remarks
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Netsuite Metadata Folder
A path to a directory to download metadata files from NetSuite. Set this for best performance.
Data Type
string
Default Value
""
Remarks
In order to avoid needless overhead, the adapter downloads a number of metadata files from the NetSuite API. If NetsuiteMetadataFolder is not specified then the Location will be used. Always set a value for NetsuiteMetadata for best performance.
OAuth Access Token
The access token for connecting using OAuth.
Data Type
string
Default Value
""
Remarks
The OAuthAccessToken property is used to connect using OAuth. The OAuthAccessToken is retrieved from the OAuth server as part of the authentication process. It has a server-dependent timeout and can be reused between requests.
The access token is used in place of your username and password. The access token protects your credentials by keeping them on the server.
OAuth Access Token Secret
The OAuth access token secret for connecting using OAuth.
Data Type
string
Default Value
""
Remarks
The OAuthAccessTokenSecret property is used to connect and authenticate using OAuth. The OAuthAccessTokenSecret is retrieved from the OAuth server as part of the authentication process. It is used with the OAuthAccessToken and can be used for multiple requests until it times out.
OAuth Client Id
The client Id assigned when you register your application with an OAuth authorization server.
Data Type
string
Default Value
""
Remarks
As part of registering an OAuth application, you will receive the OAuthClientId value, sometimes also called a consumer key, and a client secret, the OAuthClientSecret.
OAuth Client Secret
The client secret assigned when you register your application with an OAuth authorization server.
Data Type
string
Default Value
""
Remarks
As part of registering an OAuth application, you will receive the OAuthClientId, also called a consumer key. You will also receive a client secret, also called a consumer secret. Set the client secret in the OAuthClientSecret property.
OAuth Expires In
The lifetime in seconds of the OAuth AccessToken.
Data Type
string
Default Value
""
Remarks
Pair with OAuthTokenTimestamp to determine when the AccessToken will expire.
OAuth Settings Location
The location of the settings file where OAuth values are saved when InitiateOAuth is set to GETANDREFRESH or REFRESH. Alternatively, this can be held in memory by specifying a value starting with memory://.
Data Type
string
Default Value
"%APPDATA%\\CData\\NetSuite Data Provider\\OAuthSettings.txt"
Remarks
When InitiateOAuth is set to GETANDREFRESH or REFRESH, the adapter saves OAuth values to avoid requiring the user to manually enter OAuth connection properties and allowing the credentials to be shared across connections or processes.
Alternatively to specifying a file path, memory storage can be used instead. Memory locations are specified by using a value starting with 'memory://' followed by a unique identifier for that set of credentials (ex: memory://user1). The identifier can be anything you choose but should be unique to the user. Unlike with the file based storage, you must manually store the credentials when closing the connection with memory storage to be able to set them in the connection when the process is started again. The OAuth property values can be retrieved with a query to the sys_connection_props system table. If there are multiple connections using the same credentials, the properties should be read from the last connection to be closed.
If left unspecified, the default location is "%APPDATA%\\CData\\NetSuite Data Provider\\OAuthSettings.txt" with %APPDATA% being set to the user's configuration directory:
 
Platform
%APPDATA%
Windows
The value of the APPDATA environment variable
Mac
~/Library/Application Support
Linux
~/.config
OAuth Token Timestamp
The Unix epoch timestamp in milliseconds when the current Access Token was created.
Data Type
string
Default Value
""
Remarks
Pair with OAuthExpiresIn to determine when the AccessToken will expire.
OAuth Verifier
The verifier code returned from the OAuth authorization URL.
Data Type
string
Default Value
""
Remarks
The verifier code returned from the OAuth authorization URL. This can be used on systems where a browser cannot be launched such as headless systems.
Authentication on Headless Machines
Set OAuthSettingsLocation along with OAuthVerifier. When you connect, the adapter exchanges the OAuthVerifier for the OAuth authentication tokens and saves them, encrypted, to the specified file. Set InitiateOAuth to GETANDREFRESH automate the exchange.
Once the OAuth settings file has been generated, you can remove OAuthVerifier from the connection properties and connect with OAuthSettingsLocation set.
To automatically refresh the OAuth token values, set OAuthSettingsLocation and additionally set InitiateOAuth to REFRESH.
Other
The other parameters necessary to connect to a data source, such as username and password, when applicable.
Data Type
string
Default Value
""
Remarks
The Other property is a semicolon-separated list of name-value pairs used in connection parameters specific to a data source.
Integration and Formatting
DefaultColumnSize
Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000.
ConvertDateTimeToGMT
Whether to convert date-time values to GMT, instead of the local time of the machine.
RecordToFile=filename
Records the underlying socket data transfer to the specified file.
Pagesize
The number of results to return per page from NetSuite.
Data Type
string
Default Value
""
Remarks
The pagesize can control the number of results requested from NetSuite on a given query. Setting a higher pagesize will cause more data to come back in a given request, but may take longer to execute. Setting a smaller pagesize is generally recommended to ensure timeout exceptions do not occur.
Password
The password of the NetSuite user used to authenticate.
Data Type
string
Default Value
""
Remarks
Together with User and AccountId, this field is used to authenticate to NetSuite.
Proxy Auth Scheme
The authentication type to use to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
"BASIC"
Remarks
This value specifies the authentication type to use to authenticate to the HTTP proxy specified by ProxyServer and ProxyPort.
Note that the adapter will use the system proxy settings by default, without further configuration needed; if you want to connect to another proxy, you will need to set ProxyAutoDetect to false, in addition to ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
The authentication type can be one of the following:
BASIC: The adapter performs HTTP BASIC authentication.
DIGEST: The adapter performs HTTP DIGEST authentication.
NEGOTIATE: The adapter retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
PROPRIETARY: The adapter does not generate an NTLM or Kerberos token. You must supply this token in the Authorization header of the HTTP request.
If you need to use another authentication type, such as SOCKS 5 authentication, see Firewall Type.
Proxy Auto Detect
This indicates whether to use the system proxy settings or not. Set ProxyAutoDetect to FALSE to use custom proxy settings. This takes precedence over other proxy settings.
Data Type
bool
Default Value
true
Remarks
By default, the adapter uses the system HTTP proxy. Set this to false if you want to connect to another proxy.
To connect to an HTTP proxy, see Proxy Server.
For other proxies, such as SOCKS or tunneling, see Firewall Type.
Proxy Exceptions
A semicolon separated list of hosts or IPs that will be exempt from connecting through the ProxyServer .
Data Type
string
Default Value
""
Remarks
The ProxyServer will be used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.
Note that the adapter will use the system proxy settings by default, without further configuration needed; if you want to explicitly configure proxy exceptions for this connection, you will need to set ProxyAutoDetect to false, and configure ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
Proxy Password
A password to be used to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
""
Remarks
This property is used to authenticate to an HTTP proxy server that supports NTLM (Windows), Kerberos, or HTTP authentication. To specify the HTTP proxy, you can set ProxyServer and ProxyPort. To specify the authentication type, set ProxyAuthScheme.
If you are using HTTP authentication, additionally set ProxyUser and ProxyPassword to HTTP proxy.
If you are using NTLM authentication, set ProxyUser and ProxyPassword to your Windows password. You may also need these to complete Kerberos authentication.
For SOCKS 5 authentication or tunneling, see Firewall Type.
By default, the adapter uses the system proxy. If you want to connect to another proxy, set ProxyAutoDetect to false.
Proxy Port
The TCP port the ProxyServer proxy is running on.
Data Type
string
Default Value
"80"
Remarks
The port the HTTP proxy is running on that you want to redirect HTTP traffic through. Specify the HTTP proxy in ProxyServer. For other proxy types, see Firewall Type.
Proxy Server
The hostname or IP address of a proxy to route HTTP traffic through.
Data Type
string
Default Value
""
Remarks
The hostname or IP address of a proxy to route HTTP traffic through. The adapter can use the HTTP, Windows (NTLM), or Kerberos authentication types to authenticate to an HTTP proxy.
If you need to connect through a SOCKS proxy or tunnel the connection, see Firewall Type.
By default, the adapter uses the system proxy. If you need to use another proxy, set ProxyAutoDetect to false.
Proxy SSL Type
The SSL type to use when connecting to the ProxyServer proxy.
Data Type
string
Default Value
"AUTO"
Remarks
This property determines when to use SSL for the connection to an HTTP proxy specified by ProxyServer. This value can be AUTO, ALWAYS, NEVER, or TUNNEL. The applicable values are the following:
 
AUTO
Default setting. If the URL is an HTTPS URL, the adapter will use the TUNNEL option. If the URL is an HTTP URL, the component will use the NEVER option.
ALWAYS
The connection is always SSL enabled.
NEVER
The connection is not SSL enabled.
TUNNEL
The connection is through a tunneling proxy: The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.
 
Proxy User
A user name to be used to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
""
Remarks
The ProxyUser and ProxyPassword options are used to connect and authenticate against the HTTP proxy specified in ProxyServer.
You can select one of the available authentication types in ProxyAuthScheme. If you are using HTTP authentication, set this to the username of a user recognized by the HTTP proxy. If you are using Windows or Kerberos authentication, set this property to a username in one of the following formats:
user@domain
domain\user
Readonly
You can use this property to enforce read-only access to NetSuite from the provider.
Data Type
bool
Default Value
false
Remarks
If this property is set to true, the adapter will allow only SELECT queries. INSERT, UPDATE, DELETE, and stored procedure queries will cause an error to be thrown.
Report Doubles As Decimal
Indicates if doubles should be reported as decimal.
Data Type
bool
Default Value
true
Remarks
In the NetSuite API, all columns are reported as doubles. However, this can cause rounding issues when used in aggregation queries. It is generally expected that when monetary columns are used, they should be reported and stored as decimal. While we cannot change how the NetSuite API handles these columns, we can represent them in our tools as decimal so that their use in formulas like aggregations are not subject to these problems. For backwards compatibility on existing implementations, this property be set to false.
Request Memorized Transactions
A boolean indicating if you would like to request memorized transactions when retrieving transactions from NetSuite.
Data Type
bool
Default Value
false
Remarks
Memorized transactions in NetSuite are transactions that have been memorized for potentially being used again at a later time. They can be set up to recur on a regular basis or as a reminder to the user.
Role Id
The RoleId is the InternalId of the role that will be used to log in to NetSuite. Leave empty to use the user's default role.
Data Type
string
Default Value
""
Remarks
Together with User, Password, and AccountId this field is used to authenticate to NetSuite. If no RoleId is specified, the user's default role will be used. Otherwise, a RoleId may be obtained by logging into NetSuite, and navigating to the Setup -> Integration -> Web Services Preferences page. Here you can select a different Web Services Default Role as well as obtain the Id, displayed next to the specified role.
Schema
The type of schema to use.
Data Type
string
Default Value
"SuiteTalk"
Remarks
The schemas available are SuiteTalk (to use SuiteTalk SOAP API and SuiteScript) and SuiteQL (to use REST API via SuiteQL).
SSL Server Cert
The certificate to be accepted from the server when connecting using TLS/SSL.
Data Type
string
Default Value
""
Remarks
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine will be rejected.
This property can take the forms:
 
Description
Example
A full PEM Certificate (example shortened for brevity)
-----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
A path to a local file containing the certificate
C:\cert.cer
The public key (example shortened for brevity)
-----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space or colon separated)
ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space or colon separated)
34a929226ae0819f2ec14b4a3d904f801cbb150d
 
If not specified, any certificate trusted by the machine will be accepted. Use '*' to signify to accept all certificates (not recommended for security concerns).
Timeout
The value in seconds until the timeout error is thrown, canceling the operation.
Data Type
string
Default Value
"300"
Remarks
If the Timeout property is set to 0, operations do not time out: They run until they complete successfully or encounter an error condition.
If Timeout expires and the operation is not yet complete, the adapter throws an exception.
If the Timeout property is set to 0, operations do not time out: They run until they complete successfully or encounter an error condition. If Timeout expires and the operation is not yet complete, the adapter throws an exception.
In NetSuite, operations can take a very long time to return if retrieving data from child tables or retrieving data from from a given table with AggregateColumnMode set to ListAndRetrieve. For instance, it is not unheard of for it to take in excess of 10 minutes to retrieve 1000 SalesOrders in a single request from NetSuite when AggregateColumnMode is set to ListAndRetrieve. Unfortunately, this is a limitation of the NetSuite Web Services with no known solution. If you need to work with aggregate columns or child tables, set Timeout to 0, set a small Pagesize, and select specific columns instead of everything.
Use Async Services
A boolean indicating if you would like to use asynchronous services when inserting, updating, and deleting.
Data Type
bool
Default Value
false
Remarks
NetSuite responses can be fairly slow, especially when inserting, updating, or deleting many records at a time. In these situations it is best to use asynchronous services to submit the data. Asynchronous services allow NetSuite to process the data while your application continues executing. The downside of using asynchronous services is that you will need to check the Job in NetSuite to see if NetSuite has finished processing the request and see if there were any issues.
Use Internal Names For Customizations
A boolean indicating if you would like to use internal names for customizations.
Data Type
bool
Default Value
false
Remarks
Typically the Label of a customization is shown when surfacing tables for custom records, and columns for custom field. This is done for ease of use so that things appear as they do in the NetSuite UI. However, it is technically not guaranteed to remain the same. If someone goes into NetSuite and modifies the label, it will cause the custom field or custom record to change name in our tool. Setting UseInternalNamesForCustomizations to false will instead cause the internal API names (which cannot be changed) to be surfaced for these tables and custom fields instead.
User
The user of the NetSuite account used to authenticate.
Data Type
string
Default Value
""
Remarks
Together with AccountId and Password, this field is used to authenticate to NetSuite.
User Timezone Offset
Your user timezone offset as defined in your NetSuite preferences under Home --> Preferences --> Time Zone. Ex: -8:00.
Data Type
string
Default Value
""
Remarks
NetSuite returns dates offset based on your user timezone preferences. This applies only to Dates, and not to Datetimes, which always return the same way no matter your preferences. We attempt a best effort to automatically correct for this and return dates as they would appear in the NetSuite UI. However, this is not 100% perfect due to how a few time zones are offset by 24 hours or greater depending on daylight savings time. If your user preferences are set to +13:00, +12:00, or -12:00, this value must be specified to get dates to show up correctly. For other offsets it is not required but recommended for best accuracy.
Use Simple Names
Boolean determining if simple names should be used for tables and columns.
Data Type
bool
Default Value
false
Remarks
NetSuite tables and columns can use special characters in names that are normally not allowed in standard databases. UseSimpleNames makes the adapter easier to use with traditional database tools.
Setting UseSimpleNames to true will simplify the names of tables and columns returned. It will enforce a naming scheme such that only alphanumeric characters and the underscore are valid for the displayed table and column names. Any nonalphanumeric characters will be converted to an underscore.
Use Upserts
A boolean indicating if you would like to perform an upsert when an insert operation is used.
Data Type
bool
Default Value
false
Remarks
Upserts can be used to potentially update an existing record when inserting. NetSuite handles this by using the ExternalId on a given record. If you perform an insert when the ExternalId you specify exists in NetSuite, it will instead update the corresponding record. Otherwise an insert will take place. Set this value to false to always insert new records regardless.
Version
The version of the NetSuite API in usage. Defaults to 2017_1.
Data Type
string
Default Value
"2017_1"
Remarks
In most cases the version should not need to be changed. However, if you modify the version, please make sure beforehand that the version specified exists as part of the NetSuite API. If an incorrect version is specified, the adapter will be unable to retrieve or update tables in NetSuite.
Web Service Host
An optional override for the web service host such as webservices.na1.netsuite.com.
Data Type
string
Default Value
""
Remarks
This is an override for the web services host if for some reason the host cannot be dynamically resolved. It intended as a last resort and should not normally need to be specified.
In most cases the web service host will be dynamically determined by using the NetSuite web service request that retrieves the correct web service host for your Account as well as the UseSandbox connection property. This will result in one extra request each time you create and establish a new connection. If you would like to avoid this extra request, you can instead set the WebServiceHost to override it. Note that specifying WebServiceHost will cause UseSandbox to be ignored.
The currently accepted web service hosts for NetSuite are the following: webservices.netsuite.com webservices.na1.netsuite.com webservices.sandbox.netsuite.com