Eystein Bye
01/14/2021, 7:17 PMobjRecord.setValue({ fieldId: 'billaddr1', value: 'NewValue' });
or
objRecord.setSublistValue({sublistId: 'addressbook', fieldId: 'addr1_initialvalue', line: 2, value: 'NewValue' });
and calling: objRecord.save()
But I cant see the changes in NetSuites Address-tabbattk
01/14/2021, 7:28 PMbattk
01/14/2021, 7:29 PMEystein Bye
01/14/2021, 7:32 PMbattk
01/14/2021, 7:33 PMEystein Bye
01/14/2021, 7:36 PMvar objRecord = record.load(
{
type: record.Type.CUSTOMER,
id: 2153
});
var lineNumber = objRecord.findSublistLineWithValue({
sublistId: 'addressbook',
fieldId: 'defaultbilling',
value: true
});
objRecord.setSublistValue({
sublistId: 'addressbook',
fieldId: 'addr1_initialvalue',
line: lineNumber,
value: 'NewValue'
});
var recordId = objRecord.save();
battk
01/14/2021, 7:38 PMEystein Bye
01/14/2021, 7:40 PM"sublists": {
"addressbook": {
"line 3": {
"addr1_initialvalue": "NewValue",
But not in NetSuite address tabbattk
01/14/2021, 7:41 PMbattk
01/14/2021, 7:42 PMEystein Bye
01/14/2021, 7:43 PMEystein Bye
01/14/2021, 9:13 PMstalbert
01/14/2021, 9:34 PMEystein Bye
01/14/2021, 10:51 PMstalbert
01/15/2021, 12:49 AM