Modules
Objects/Functions
SuiteScript 2.0
{Record}.removeSublistSubrecord({sublistId: {string*},fieldId: {string*},line: {number*}})
N/record Module
Record.removeSublistSubrecord()
Method Description:
Removes the subrecord for the associated sublist field. (standard mode only — see SuiteScript 2.0 – Standard and Dynamic Modes)
When working in dynamic mode, remove a sublist subrecord using the following methods:
Record.selectLine(options)
Record.hasCurrentSublistSubrecord(options)
Record.removeCurrentSublistSubrecord(options)
Record.commitLine(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.removeSublistSubrecord(options)
Example:
// Code Example 1
// Add additional code.
//...
objRecord.removeSublistSubrecord({
sublistId: 'item',
fieldid: 'item',
line: 3
});
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296712585.html