anyone know how(if it’s possible) to set bill-to a...
# suitescript
m
anyone know how(if it’s possible) to set bill-to address from the entity address list using
record.create()
in standard mode? (i can get it to work in dynamic by just setting the address id in
billaddresslist
, but am running into other problems re: dynamic mode) i tried all the combinations i can think of.
b
what problems?
m
lol. namely performance. record creation is happening in a restlet and it takes ~3x longer to run the full create/save routine in dynamic mode. i’ve already started investigating why and how to address that, just thought maybe someone had a quick win workaround for the time being.
b
as in what is the problem with standard mode
s
I always use standard mode; unless dynamic mode is actually required.
m
i want to set the bill to address from a known address id associated with the entity. setting billaddresslist (which works in dynamic mode) does nothing. billaddress, billaddress_key throw `unknown errors’, billingaddress sets the address to the id.
(agreed. i don’t want to use dynamic mode, it’s just the only way i can get this particular activity to work atm, hence the question.)
b
unknown error sounds like a weird error
unexpected is the usual thing you see
what does your code look like
m
sorry, it’s semantics. it’s the classic
unexpected error
i’ll try mocking up an example. the code in this case is way more complicated than the question: how do you set an address by id in record.create() in standard mode.
b
the answer is the same as the dynamic mode way: set billaddresslist
which suggests your problem is elsewhere
m
awesome! thanks for the confirmation.