NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    NetSuite generic Entity used as a common base class for 'entity-like' records, This is meant to be inherited by concrete record types to avoid duplicating effort on fields. Note that this inheritance hierarchy emerged empirically - it's not documented by NetSuite.

    It contains fields common to all 'entity' records in NS

    Hierarchy (View Summary)

    Index

    Constructors

    • Loads an existing record with the given internal id

      Parameters

      • id: NonNullable<string | number>

        record internal id to load

      • OptionalisDynamic: boolean

        set true if you want to load the record in dynamic mode

      Returns EmployeeBase

      // load customer with internal id 123
      const c = new Customer(123)
    • Creates an NSDAL instance for the given existing NetSuite record object. This does NOT reload the record - it just wraps the supplied rec

      Parameters

      • rec: NonNullable<ClientCurrentRecord | Record>

        an existing netsuite record

      Returns EmployeeBase

      // 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)
    • creates a new record

      Parameters

      • Optionalunused: Nullable<string | number>

        either null or leave this parameter out entirely

      • OptionalisDynamic: boolean

        true if you want to create the record in dynamic mode, otherwise uses standard mode.

      • Optionaldefaultvalues: object

        optional defaultvalues object - specific to certain records that allow initializing a new record.

      Returns EmployeeBase

      // start a new customer record
      const c = new Customer()

      // start a new customer record in dynamic mode
      const c = new Customer(null, true)

    Properties

    _id: number

    Netsuite internal id of this record

    accountnumber: string
    altemail: string
    altphone: string
    approver: number
    balance: number
    billpay: boolean
    birthdate: Date
    category: number
    class: number
    comments: string
    companyname: string
    currency: number
    customform: number
    datecreated: Date
    defaultValues?: object
    department: number
    directdeposit: boolean
    email: string
    employeestatus: number
    employeetype: number
    entityid: string
    entitystatus: number
    externalid: string
    fax: string
    firstname: string
    gender: string
    giveaccess: boolean
    hiredate: Date
    homephone: string
    image: number
    isinactive: boolean
    isjobmanager: boolean
    isjobresource: boolean
    isperson: null | "T" | "F"
    jobdescription: string
    language: number
    lastmodifieddate: Date
    lastname: string
    lastreviewdate: Date
    location: number
    maritalstatus: number
    mobilephone: string
    nsrecord: Record

    underlying netsuite record

    officephone: string
    parent: number
    phone: string
    releasedate: Date
    sendemail: boolean
    subsidiary: number
    supervisor: number
    taxitem: number
    terms: number
    timeapprover: number
    title: string
    workcalendar: number

    Accessors

    Methods

    • Persists this record to the NS database

      Parameters

      • OptionalenableSourcing: boolean
      • OptionalignoreMandatoryFields: boolean

      Returns number