Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getSublistText(options)

{Record}.getSublistText({sublistId: {string*},fieldId: {string*},line: {number*}})

N/record Module
Record.getSublistText()
Method Description: Returns the value of a sublist field in a text representation. (standard mode only — see SuiteScript 2.0 – Standard and Dynamic Modes) Gets a string value with a "%" for rate and ratehighprecision fields.
Returns: string For multiselect fields, returns an array.
Supported Script Types: Client and server-side scripts. For more information, see SuiteScript 2.0 Script Types. Limitations exist on how this method can be used in standard (deferredDynamic) mode. For details, refer to the description of the SSS_INVALID_API_USAGE error code in the Errors table. In dynamic mode, you can use getSublistText() without limitation.
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.getSublistText(options)

Example:

// Code Example 1
// Add additional code.
//...
var sublistFieldName = objRecord.getSublistText({
sublistId: 'item',
fieldId: 'item',
line: 3
});
//...
// Add additional code.

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