KM
07/14/2026, 5:36 PMCeligo AI
07/14/2026, 5:36 PMAI generated answer (using internal Slack threads):To update a customer's address in SuiteScripts, you can use the
getSublistSubrecord method on the customer record. This method allows you to access the address sublist and update the fields within it. Here is an example of how you can do this:
javascript
var addressSubRec = customerRecord.getSublistSubrecord({
sublistId: 'addressbook',
fieldId: 'addressbookaddress',
line: 0
});
Once you have the subrecord, you can then set the values for the address fields. For example:
javascript
addressSubRec.setValue({
fieldId: 'addressee',
value: 'Mohammed Talahwi'
});
addressSubRec.setValue({
fieldId: 'addr1',
value: 'El Shaar , 3097'
});
// Set other fields as needed
Remember to commit the changes to the subrecord and save the customer record:
javascript
customerRecord.commitLine({
sublistId: 'addressbook'
});
customerRecord.save();
If you're having trouble with the address not showing up in view mode, make sure the OVERRIDE field is set to true for the address subrecord.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
07/14/2026, 5:37 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839904845
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837219298
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835083067
Celigo AI
07/14/2026, 5:37 PM