Modules
Objects/Functions
SuiteScript 2.0
{Record}.hasSublistSubrecord({sublistId: {string*},fieldId: {string*},line: {number*}})
N/record Module
Record.hasSublistSubrecord()
Method Description:
Returns a value indicating whether the associated sublist field contains a subrecord.
This method is not available for subrecords.
(standard mode only — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns:
boolean
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.hasSublistSubrecord(options)
Example:
// Code Example 1
// Add additional code.
//...
var hasSubrecord = objRecord.hasSublistSubrecord({
sublistId: 'item',
fieldId: 'item',
line: 3
});
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4600435332.html