Modules
Objects/Functions
SuiteScript 2.0
{CurrentRecord}.findSublistLineWithValue({sublistId: {string*},fieldId: {string*},value: {number | Date | string | array | boolean}})
N/currentRecord Module
CurrentRecord.findSublistLineWithValue()
Method Description:
Returns the line number for the first occurrence of a field value in a sublist.
Returns:
A line number as a number, or -1 if not found.
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.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_4637586103.html