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