Loads an existing record with the given internal id
// load customer with internal id 123
const c = new Customer(123)
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
// assume `ctx` is the _context_ object passed to a `beforeSubmit()` entrypoint.
// results in an NFT representation of the 'new record'
const customer = new Customer(ctx.newRecord)
an existing netsuite record
creates a new record
// start a new customer record
const c = new Customer()
// start a new customer record in dynamic mode
const c = new Customer(null, true)
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
Date Approved
Approval Status NetSuite lists this as a select field, but it is a string value (e.g. APPROVED).
Billing Account
Created By
Customer
Date Created
Protected
Optional
defaultEffective Date This date needs to match any other Change Order effective dates or else NetSuite will throw an error.
External ID
Number
Memo
Modification Type
New Lines (newsubline) Sublist
underlying netsuite record
Reactivation Option
Renewal End Date
Renewal Method
Renewal Subscription Plan
Renewal Price Book
Renewal Start Date
Renewal Steps (renewalsteps) Sublist
Renewal Term
Renewal Transaction Type
Request Off-Cycle Invoice For Advance Charges
Requester
Items (subline) Sublist
Subscription
Subscription Plan
Subscription Term Duration
Subscription Term Type
Subsidiary
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
recordGenerated using TypeDoc
Subscription Change Order NetSuite record | On creation, the following default values are required: action and subscription.