Modules
Objects/Functions
SuiteScript 2.0
{CurrentRecord}.setValue({fieldId: {string*},value: {number | Date | string | array | boolean*},ignoreFieldChange: {boolean},forceSyncSourcing: {boolean}})
N/currentRecord Module
CurrentRecord.setValue()
Method Description:
Sets the value of a field.
Sets a numeric value for rate and ratehighprecision fields.
Returns:
currentRecord.CurrentRecord
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.setValue(options)
Example:
// Code Example 1
//Add additional code
//...
objRecord.setValue({
fieldId: 'item',
value: true,
ignoreFieldChange: true,
forceSyncSourcing: true
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637577499.html