
In this example I will be showing you how to get a sales order delivery address using below code.
logisticsPostalAddress = LogisticsPostalAddress::findRecId(salesTable.DELIVERYPOSTALADDRESS);
if(logisticsPostalAddress)
{
str street = logisticsPostalAddress.Street;
str city = logisticsPostalAddress.City;
str state = logisticsPostalAddress.State;
str countryRegionId = logisticsPostalAddress.CountryRegionId;
str zipCode = logisticsPostalAddress.ZipCode;
}
Leave a comment