Modules

filter

 

Objects/Functions

module (N/currentRecord)

SuiteScript 2.0

CurrentRecord.hasSubrecord(options)

{CurrentRecord}.hasSubrecord({fieldId: {string*}})

N/currentRecord Module
CurrentRecord.hasSubrecord()
Method Description: Returns a value indicating whether the field contains a subrecord.
Returns: boolean
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.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_4637581381.html