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
_Netsuite internal id of this record
NetSuite lists this as a select field, but often the value is a string (e.g. DAYS).
Auto
Automatically Initiate Renewal Process
Billing Account
Billing Account Start Date | As of 1/20/22, NetSuite says this is a required field, which is incorrect. It is most likely being confused with startdate.
Billing Schedule
Status | NetSuite lists this as a select field, but it is a string value (e.g. ACTIVE).
Currency
Customer
Custom Form
Default Renewal Method | NetSuite lists this as a select field, but it is a string value (e.g. CREATE_NEW_SUBSCRIPTION). This is optional when Initial Term is Evergreen.
Default Renewal Plan | This is optional when Initial Term is Evergreen.
Default Renewal Price Book
Default Renewal Term | This is optional when Initial Term is Evergreen.
Default Renewal Transaction Type
Protected
Optional
defaultEnd Date
Estimated Revenue Recognition End Date
External ID
Billing Frequency | NetSuite lists this as a select field, but it is a string value (e.g. MONTHLY).
Subscription ID
Initial Term
Initial Term Duration
Initial Term Type | NetSuite lists this as a select field, but it is a string value (e.g. EVERGREEN).
Initial Term Units | NetSuite lists this as a select field, but it is a string value (e.g. MONTHS).
Internal ID
Last Bill Cycle Date
Last Bill Date
Subscription Name
Next Bill Cycle Date
Next Renewal Start Date
underlying netsuite record
Other Record Number
Price Book
priceinterval - Price Book Lines (Sublist)
Number of Renewal
Originating Sales Order
Start Date | As of 1/20/22, NetSuite says this is not a required field, which is incorrect. It is most likely being confused with billingaccountstartdate.
sublinefromplan - Lines (Sublist)
subscriptionline - Lines (Sublist)
Subscription Plan
Subscription Plan Name
Subscription Revision
Subsidiary
Template Stored
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
Persists this record to the NS database
Optional
enableSourcing: booleanOptional
ignoreMandatoryFields: booleanStatic
recordThe netsuite record type (constant string) - this is declared here and overridden in derived classes
NetSuite Subscription record type