Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.findMatrixSublistLineWithValue(options)

{Record}.findMatrixSublistLineWithValue({sublistId: {string*},fieldId: {string*},value: {number*},column: {number*}})

N/record Module
Record.findMatrixSublistLineWithValue()
Method Description: Returns the line number of the first instance where a specified value is found in a specified column of the matrix. Note that line and column indexing begins at 0 with SuiteScript 2.0. (dynamic and standard modes — 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.findMatrixSublistLineWithValue(options)

Example:

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

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