How do I retrieve the ship from address of a lineItem? I currently have the code below implemented to retrieve the delivery address of a lineItem and it works, is there something similar to retrieve the ShipFrom address?
private static ErpAddress mapShipFromInformation(SalesLine requestLine)
{
ErpAddress deliveryAddress = new ErpAddress();
DeliveryAddress.setStreetAddress(requestLine.deliveryAddress().Street + " " + requestline.deliveryAddress().StreetNumber);
DeliveryAddress.setCity(requestLine.deliveryAddress().City);
DeliveryAddress.setState(requestLine.deliveryAddress().State);
DeliveryAddress.setZipcode(requestLine.deliveryAddress().ZipCode);
DeliveryAddress.setCountry(requestLine.deliveryAddress().CountryRegionId);
return deliveryAddress;
}
I have tried this but it doesn't work
ErpAddress shipFromAddress;
shipFromAddress.setCity(requestLine.shipCarrierLocation().city);
*This post is locked for comments