Loads an existing record with the given internal id
record internal id to load
Optional
isDynamic: booleanset true
if you want to load the record in dynamic mode
Creates an NSDAL instance for the given existing NetSuite record object.
This does NOT reload the record - it just wraps the supplied rec
an existing netsuite record
creates a new record
Optional
unused: Nullable<string | number>either null
or leave this parameter out entirely
Optional
isDynamic: booleantrue if you want to create the record in dynamic mode, otherwise uses standard mode.
Optional
defaultvalues: objectoptional defaultvalues
object - specific to certain records that allow initializing a
new record.
Protected
_idNetsuite internal id of this record
note this field name differs from the 'records browser' documentation
Unlike other select
fields which take a numeric internal id value, this one requires the country abbreviation as the key (e.g. 'US')
Protected
Optional
defaultunderlying netsuite record
Returns NetSuite field metadata. Useful for doing things like disabling a field on the form programmatically.
field name for which you want to retrieve the NetSuite field object
Static
record
The addressbook 'subrecord'. In SS2.x this is mostly treated as a normal record object but you can't create or load one from scratch. Typically just reference this type on the appropriate address subrecord property. For example,
Example
Example: - defining custom addressbook subrecord fields.