question about customer records and address / addr...
# suitescript
k
question about customer records and address / addressbook: i'm having difficulty assigning an address for a newly-created customer record in standard mode; i'm having a bit of trouble figuring out what i need to do via the javascript api. it appears valid to use
record.setSublistValue({sublistId, line, fieldId, value})
(or at least, that worked for line items on sales orders). however, when i do the same using sublistId of
addressbook
i get
"Please enter value(s) for: Address"
as an error. however, in the records browser, there does not appear to be any required fields on the
addressbook
sublist. via some docs it seems like what i want to do is set a sub_record_ in the sub_list_, but i'm not exactly happy with the nature of "insert line / set current sublist value / commit line" workflow. is it possible to create an
addressbookaddress
subrecord in isolation, then set it as the first item in the sublist? (or insert it, etc)