Would anyone know why, when using a custom address...
# suitescript
t
Would anyone know why, when using a custom address on a Sales Order, I can use the function "nlapiEditSubrecord('shippingaddress')', but when I select a stored address from the shipaddresslist, that same function returns null??
I should mention: this is in a User Event before submit function. I'm trying to get the shipping state.
a
a custom address is associated with the Sales Order only, an existing address is actually sources from the customer record
if the state is all you're looking for, try simply reading the field 'shipstate'
t
Thanks for your response Andrew! Unfortunately, when I use nlapiGetFieldValue('shipstate'), I get this: TypeError: Cannot call method "getFieldValue" of null
Oh wait, hold on
That works! You are my hero, thanks!
a
🙂