Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.removeLine(options)

{Record}.removeLine({sublistId: {string*},line: {number*},ignoreRecalc: {boolean},lineInstanceId: {string*}})

N/record Module
Record.removeLine()
Method Description: Removes a sublist line. (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.removeLine(options)

Example:

// Code Example 1
// Add additional code.
// The following code snippet assumes that there are at least three committed lines present in the item sublist.
//...
objRecord.removeLine({
sublistId: 'item',
line: 3,
ignoreRecalc: true
});
//...
// Add additional code.

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