Global API
Requests

NetSuite Custom Fields

5min

You can find the below customFieldList field name in all NetSuite Objects, use it to pass the custom fields list as a part of any create/update request.

Field Name

Date Type

Description

customFieldList

CustomFields

Custom Fields and their values.



Let's see how to add the custom fields in the request and what format the data is to be given:

CustomFields

Field Name

Data Type

Description

customField

List of CustomField Info

CustomFieldInfo

Field Name

Data Type

Description

fieldType*

String

Specify the Data Type of a Custom Field. First, know what is the NetSuite Custom Field Type of the Custom Field, so we can see what fieldType value is to be selected from the Custom Field Types.

internalId

String

Internal ID of the NetSuite Custom Field.

scriptId*

String

NetSuite Custom Field API Name

value

String

The value of the Custom Field. Required and returned for all the custom fields other than “select” (fieldType)

valueLookup

LookupRecord

The Internal ID of the Custom Lookup/Picklist Field. Required and returned for the fieldType “select”



The values of NetSuite Custom Field Type (helps in knowing the fieldType) and the NetSuite Custom Field API Name (scriptId) can be known either by logging into NetSuite or going to the Custom Fields Tab on the Breadwinner for NetSuite page in Salesforce in case of Standard NetSuite Objects.

NetSuite Custom Fields for Standard NetSuite Objects
NetSuite Custom Fields for Standard NetSuite Objects


Custom Field Types

NetSuite Field Type

fieldType Value

Value

Date

date

The date value is accepted and returned as a Unix timestamp in seconds.

DateTime

date

The date-time value is accepted and returned as a Unix timestamp in seconds.

List Record (Lookup)

select

Internal ID of the NetSuite record or List element

Integer Number

long



Decimal Number

double



Currency

double



Percent

double



Check Box

boolean

TRUE/FALSE

Free Form Text

string



Text Area

string



Long Text

string



Email Address

string

Email format

Hyperlink

string

Domains & Websites

Below is an example of constructing the Customer custom fields as a part of the request:

Request Part