get vendor address in ax 2012
static void Job45(Args _args)
{
VendTable vendtable;
str description,address,completeaddress;
VendTable = vendtable::find('uncunc-Ven1');
description = DirParty::primaryPostalAddress(vendtable.Party).displayLocationDescription();
address = DirParty::primaryPostalAddress(vendtable.Party).Address;
completeaddress = strFmt("%1,%2",description,address);
info(strFmt("%1",completeaddress));
//Get the Current Company Address
info(strFmt("%1,%2",curext(),LogisticsPostalAddress::findByLocation(CompanyInfo::find().postalAddress().Location).Address));
}