Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getLineCount(options)

{Record}.getLineCount({sublistId: {string*}})

N/record Module
Record.getLineCount()
Method Description: Returns the number of lines in a sublist. (standard and dynamic mode — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns: number
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.getLineCount(options)

Example:

// Code Example 1
// Add additional code.
//...
var numLines = objRecord.getLineCount({
sublistId: 'item'
});
//...
// Add additional code.

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