Modules
Objects/Functions
SuiteScript 2.0
{CurrentRecord}.removeSubrecord({fieldId: {string*}})
N/currentRecord Module
CurrentRecord.removeSubrecord()
Method Description:
Removes the subrecord for the associated field.
Returns:
currentRecord.CurrentRecord
Supported Script Types:
Client scripts
For more information, see SuiteScript 2.0 Client Script Type.
Governance:
None
Module:
N/currentRecord Module
Since:
2016.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=CurrentRecord.removeSubrecord(options)
Example:
// Code Example 1
//Add additional code
//...
objRecord.removeSubrecord({
fieldid: 'item'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637580399.html