Do y'all know what field to pull from the "Address...
# suitescript
s
Do y'all know what field to pull from the "Address" record so that on a sales order (transaction) I can do newRec.setValue("shipaddresslist", address.internalid)? Currently I am using the
internalid
from a search type of "Address" and it is giving me an "invalid value for ShipAddresslist"
🙌 1
e
shipaddresslist is the numeric value of the address in the customer address book subrecord when you view the customer record on the UI
The field from the address book is addressid and not internalid.
i
Ah, this explains an issue from last week
s
addressid doesn't exists on search type address though does it? I can't find it at least
b
there are 2 internal ids associated with an address
the internal id of the address subrecord, named
internal id
in searches
and the internal id of the address book line from the entity, named
address internal id
in searches
the shipping address list uses the internal id of the address book
expect to do an entity search instead of an address search