static void AXC_CompanyPhone(Args _args)
{
DirPartyLocation dirPartyLocation;
LogisticsElectronicAddress electronicAddress;
CompanyInfo companyInfo;
companyInfo = companyInfo::find();
select dirPartyLocation
where dirPartyLocation.Party == companyInfo.RecId
&& dirPartyLocation.IsPostalAddress == NoYes::No
join electronicAddress
where electronicAddress.Location == dirPartyLocation.Location
&& electronicAddress.Type == LogisticsElectronicAddressMethodType::Phone;
{
info(strFmt("Description: %1, Contact number/address: %2", electronicAddress.Description, electronicAddress.Locator));
}
}
↧
trying to retrieve contact information for current legal entity in ax 2012 bjut code gives blank value
↧