The AX 2012 method findElectronicAddressByRole is deprecated on lasted version.
On the lasted version you can define custom roles and use these roles for define custom elettronic address. This mean you cannot more use standard method for retrive address
This methods retrive the list of locators and retrive a container:
LogisticsLocationRoleName logisticsLocationRoleName;
container results;
int i;
;
logisticsLocationRoleName = "CustomRole";
results = DirParty::electronicAddressLocatorsByRole(
[PartyId],
[LogisticsElectronicAddressMethodType],
logisticsLocationRoleName);
for(i=1;i<=conLen(results);i++)
{
info(conPeek(results,
i));
}
Nessun commento:
Posta un commento