Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getValue(options)

{Record}.getValue({fieldId: {string*}})

N/record Module
Record.getValue()
Method Description: Returns the value of a field. (dynamic and standard mode — see SuiteScript 2.0 – Standard and Dynamic Modes) Gets a numeric value for rate and ratehighprecision fields.
Returns: number | Date | string | array | boolean Returns a JavaScript Date object for date/time field queries. To return a string for date/time field queries, use Record.getText(options). Date/time fields: DATE, DATETIME, DATETIMETZ, TIMEOFDAY. If the returned date object is implicitly converted to a string, the value is converted using the browser’s setting for time zone. All fields of type CHECKBOX return true or false.
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.getValue(options)

Example:

// Code Example 1
// Add additional code.
//...
var value = objRecord.getValue({
fieldId: 'item'
});
//...
// Add additional code.

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