Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.isDynamic

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Record.isDynamic for more information.

N/record Module
Record.isDynamic
Property Description: Indicates whether the record is in dynamic or standard mode. If set to true, the record is currently in dynamic mode. If set to false, the record is currently in standard mode. When a SuiteScript 2.0 script creates, copies, loads, or transforms a record in standard mode, the record’s body fields and sublist line items are not sourced, calculated, and validated until the record is saved (submitted) with Record.save(options). When you work with a record in standard mode, you do not need to set values in any particular order. After submitting the record, NetSuite processes the record’s body fields and sublist line items in the correct order, regardless of the organization of your script. When a SuiteScript 2.0 script creates, copies, loads, or transforms a record in dynamic mode, the record’s body fields and sublist line items are sourced, calculated, and validated in real-time. A record in dynamic mode emulates the behavior of a record in the UI. When you work with a record in dynamic mode, it is important that you set values in the same order you would within the UI. If you fail to do this, your results may not be accurate. This value is set when the record is created or accessed. (dynamic and standard mode — see SuiteScript 2.0 – Standard and Dynamic Modes)
Type: boolean (read-only)
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/record Module
Sibling Object Members: Record Object Members
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Record.isDynamic

Example:

// Code Example 1
// Add additional code.
//...
if (record.isDynamic) {
...
}
//...
// Add additional code.

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296707316.html