Class: UpsertRequest

UpsertRequest

new UpsertRequest(record_data) → {Loader}

UpsertRequest Class
Parameters:
Name Type Description
record_data object The data from a client request
Source:
Returns:
A new instance of UpsertRequest
Type
Loader

Methods

execute() → {null}

Performs the UpsertRequest
Source:
Returns:
Type
null

executeSublistProcessor() → {null}

Initializes and calls `execute()` on the `NetsuiteToolkit.SublistProcessor()`
Source:
Returns:
Type
null

generateReply() → {object}

Calls `NetsuiteToolkit.formatReply()` passing it `params` and `written_id`
Source:
Returns:
Formatted reply
Type
object

loadOrInitializeRecord() → {null}

Finds or creates a new record based on the presence of `internalid`
Source:
Returns:
Type
null

processSublists() → {null}

Iterates through given sublists calling `executeSublistProcessor()`
Source:
Returns:
Type
null