Project Task Base class

Hierarchy

Constructors

  • Loads an existing record with the given internal id

    Example

    // load customer with internal id 123
    const c = new Customer(123)

    Parameters

    • id: NonNullable<string | number>

      record internal id to load

    • Optional isDynamic: boolean

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

    Returns TaskBase

  • Creates an NSDAL instance for the given existing NetSuite record object. This does NOT reload the record - it just wraps the supplied rec

    Example

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

    Parameters

    • rec: NonNullable<ClientCurrentRecord | Record>

      an existing netsuite record

    Returns TaskBase

  • creates a new record

    Example

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

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

    Parameters

    • Optional unused: Nullable<string | number>

      either null or leave this parameter out entirely

    • Optional isDynamic: boolean

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

    • Optional defaultvalues: object

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

    Returns TaskBase

Properties

_id: number

Netsuite internal id of this record

accesslevel: boolean

Private task

actualtime: string

Actual Time

assigned: string | number

Assigned To

company: string | number

Company

contact: string | number

Contact

defaultValues?: object
duedate: Date

Due Date

enddate: string

Due Date

endtime: string

End Time

endtimepicker: string

End Time Picker

estimatedtime: string

Initial Time Budget

estimatedtimeoverride: string

Current Time Budget

group: string

Group

message: string

Message

milestone: string | number

Milestone

nsrecord: Record

underlying netsuite record

owner: string

Created By

parent: string | number

Parent Task

percentcomplete: string

Percent Complete

percenttimecomplete: string

Percent Time Complete

priority: string | number

Priority

reminderminutes: string | number

Reminder

remindertype: string | number

Reminder Type

sendemail: boolean

Notify Assignee by Email

startdate: Date

Start Date

starttime: string

Start Time

starttimepicker: string | number

Start Time Picker

status: string | number

Status

supportcase: string | number

Support Case

timedevent: boolean

Reserve Time

timeremaining: string

Time Remaining

timezone: string

Timezone

title: string

Title

transaction: string | number

Transaction

Accessors

  • get id(): number
  • Returns number

Methods

  • Persists this record to the NS database

    Returns

    Parameters

    • Optional enableSourcing: boolean
    • Optional ignoreMandatoryFields: boolean

    Returns number

Generated using TypeDoc