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??
Tyler
11/07/2018, 9:33 PM
I should mention: this is in a User Event before submit function. I'm trying to get the shipping state.
a
andrewh
11/07/2018, 9:47 PM
a custom address is associated with the Sales Order only, an existing address is actually sources from the customer record
andrewh
11/07/2018, 9:48 PM
if the state is all you're looking for, try simply reading the field 'shipstate'
t
Tyler
11/07/2018, 9:56 PM
Thanks for your response Andrew! Unfortunately, when I use nlapiGetFieldValue('shipstate'), I get this: TypeError: Cannot call method "getFieldValue" of null