There is no address1/address2 on the vendor addres...
# suitescript
r
There is no address1/address2 on the vendor addressbook sublist?
b
its on the addresbook's address subrecord
r
I'm sorry, I don't follow. I got the addressbookaddress subrecord... It only mentions addr1/addr2 in addressFormat. If I try to load address using getSublistSubrecord, I get field is not a subrecord field.
Copy code
let subRecord = vendorRecord.getSublistSubrecord({sublistId: 'addressbook', fieldId: 'addressbookaddress', line: i});
let subRecord2 = vendorRecord.getSublistSubrecord({sublistId: 'addressbook', fieldId: 'address', line: i});
b
I dont understand what you mean by
It only mentions addr1/addr2 in addressFormat.
r
in subRecord, addressFormat is a property
above
b
what about the other address related fields?
r
I'm looking at formatted json for that first subrecord. I don't see any other fields relevant to address1/address2.
b
depends on how you are inspecting the subrecord
but you should double check that the address actually has fields set
r
That was it... 😕