RE: How to fetch “Custom” Address from a Multiple Shipping Routes enabled Sales Order?

I have Multiple Shipping Routes enabled Sales Orders and I am not able to fetch the address fields from the item line, when the address is a Custom one which is not saved in the entity record.

Has anyone done this?

Rosse Rookie Asked on October 2, 2019 in SuiteScript.
Add Comment
3 Answers

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);

I tried

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?


Rookie Answered on October 3, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.