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

    Lead record in NetSuite

    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 LeadBase

      // 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 LeadBase

      // 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 LeadBase

      // 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

    accessrole: number
    accountnumber: string
    addressbook: Sublist<AddressSublist>
    altemail: string
    altphone: string
    autoname: boolean
    balance: number
    billpay: boolean
    buyingreason: number
    buyingtimeframe: boolean
    category: number
    comments: string
    companyname: string
    consoldaysoverdue: number
    contactroles: Sublist<ContactsSublist>
    creditholdoverride: number
    currency: number
    currencyprecision: string
    customform: number
    datecreated: Date
    daysoverdue: number
    defaultbankaccount: number
    defaultValues?: object
    draccount: number
    email: string
    emailtransactions: boolean
    entityid: string
    entitystatus: number
    estimatedbudget: number
    externalid: string
    fax: string
    firstname: string
    fxaccount: number
    globalsubscriptionstatus: number
    image: number
    isbudgetapproved: boolean
    isinactive: boolean
    isperson: null | "T" | "F"
    keywords: string
    language: number
    lastmodifieddate: Date
    lastname: string
    lastvisit: string
    leadsource: number
    middlename: string
    negativenumberformat: number
    nsrecord: Record

    underlying netsuite record

    numberformat: number
    parent: number
    partner: number
    phone: string
    prefccprocessor: number
    pricelevel: number
    printoncheckas: string
    printtransactions: boolean
    receivablesaccount: number
    referrer: string
    resalenumber: string
    salesgroup: number
    salesreadiness: number
    salesrep: number
    sourcewebsite: number
    stage: string
    subsidiary: number
    syncpartnerteams: boolean
    syncsalesteams: boolean
    taxable: boolean
    taxexempt: boolean
    taxfractionunit: number
    taxitem: number
    taxrounding: number
    terms: number
    territory: number
    title: string
    unsubscribe: number
    visits: number
    weblead: string

    Accessors

    Methods

    • Persists this record to the NS database

      Parameters

      • OptionalenableSourcing: boolean
      • OptionalignoreMandatoryFields: boolean

      Returns number