Record.isDynamic

Note:

The content in this help topic pertains to SuiteScript 2.0.

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.x Standard and Dynamic Modes)

Type

boolean (read-only)

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/record Module

Sibling Object Members

Record Object Members

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/record Module Script Samples.

          // Add additional code
...
if (record.isDynamic) {
   // add processing for dynamic records
}
...
// Add additional code 

        

Related Topics

record.Record
N/record Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices