Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.findSublistLineWithValue(options)

{Record}.findSublistLineWithValue({sublistId: {string*},fieldId: {string*},value: {number | Date | string | array | boolean}})

N/record Module
Record.findSublistLineWithValue()
Method Description: Returns the line number for the first occurrence of a field value in a sublist. Note that line indexing begins at 0 with SuiteScript 2.0. (dynamic and standard mode — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns: A line number as a number, or -1 if not found.
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.findSublistLineWithValue(options)

Example:

// Code Example 1
// Add additional code.
//...
var lineNumber = objRecord.findSublistLineWithValue({
sublistId: 'item',
fieldId: 'item',
value: 233
});
//...
// Add additional code.

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