Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getSublistSubrecord(options)

{Record}.getSublistSubrecord({sublistId: {string*},fieldId: {string*},line: {number*}})

N/record Module
Record.getSublistSubrecord()
Method Description: Gets the subrecord associated with a sublist field. (standard mode only — see SuiteScript 2.0 – Standard and Dynamic Modes) When working in dynamic mode, get a sublist subrecord using the following methods: Record.selectLine(options) Record.hasCurrentSublistSubrecord(options) Record.getCurrentSublistSubrecord(options)
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.getSublistSubrecord(options)

Example:

// Code Example 1
// Add additional code.
//...
var objSubRecord = objRecord.getSublistSubrecord({
sublistId: 'item',
fieldId: 'item',
line: 3
});
//...
// Add additional code.

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