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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156