How to fetch “Custom” Address from a Multiple Shipping Routes enabled Sales Order?
Get the shippingaddress subrecord on the item sublist to access fields on the address.
NetSuite’s examples are more geared towards setting the address subrecord, but there are the equivalent get methods on the subrecord as well.
Thanks for your response!
I need to fetch the custom address fields on before submit event on the sales order.
I am getting the internal id of the address using the following function.
nlapiGetLineItemValue('item', 'shipaddress', i);
I can also get the address text by accessing the shipgroup sublist:
nlapiGetLineItemValue('shipgroup', 'destinationaddress', 1);
nlapiViewLineItemSubrecord('item','shippingaddress', 1 )which is returning null.
I do not see any get functions listed in the documentation.
Would you provide the get function to get the address fields from the subrecord?
You can use the iladdrbook sublist to fetch the addresses.