Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getSubrecord(options)

{Record}.getSubrecord({fieldId: {string*}})

N/record Module
Record.getSubrecord()
Method Description: Gets the subrecord for the associated field. This method is not available for subrecords. (dynamic and standard mode — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns: record.Record
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
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.getSubrecord(options)

Example:

// Code Example 1
// Add additional code.
//...
var sublistFieldValue = objRecord.getSubrecord({
fieldId: 'idnumber'
});
//...
// Add additional code.

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