Hi team,
I have done below code to get the Delivery address and name but the delivery POSTAL address is NOT fetching properly.
LogisticsLocationRecId locationRecId;
LogisticsLocationRole role = LogisticsLocationRole::findBytype(LogisticsLocationRoleType::Delivery);
LocationRecId = LogisticsLocationDefault::findSimpleDefault(InventSite::find(this.InventSiteId), role).RecId;
LogisticsLocation location = LogisticsLocation::find(locationRecId);
this.DeliveryName = InventLocation::find(this.InventLocationId).Name;
this.DeliveryPostalAddress = LogisticsPostalAddress::addressRecIdFromLocationRecId(location.RecId);
Kindly let me know where is the issue?
Pls give me more shed on this.
thanks!