Monday, March 2, 2015

AX 2012 – Find the postal address of particular role AX2012



There is some situation to find the address of particular role. We can achieve this with help of DirParty class.

static void _getAddress(Args _args)
{
 LogisticsPostalAddress addr;
 addr = Dirparty::findPostalAddressByRole(vendTable::find("‪‪‪100001‬‬").Party, LogisticsLocationRoleType::Invoice);
 info (addr.Address);
}

Thanks,
K. Arunsubramaniam

No comments:

Post a Comment