record.Sublist

Object Description

Encapsulates a sublist on a standard or custom record.

For a complete list of this object’s methods and properties, see Sublist Object Members.

Supported Script Types

Client and server scripts

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

Module

N/record Module

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
...
var objRecord = record.load({
    type: record.Type.SALES_ORDER,
    id: 275 
});

var objSublist = objRecord.getSublist({
    sublistId: 'item' 
});
if(objSublist.type === 'inlineeditor'){
    //Perform an action
}
...
// Add additional code 

        

Related Topics

General Notices