Показать сообщение отдельно
Старый 01.11.2018, 10:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
d365technext: How to get Vendors or Customer Contact Information
Источник: http://d365technext.blogspot.com/201...r-contact.html
==============




How to get Vendors or Customer Contact Information

Via below code you can get the Vendor/Customer complete contact information.

Important
In AX 2012 PrimaryContactLinkedIn & PrimaryContactFacebook fields are not available.

classSLD_DemoInstance
{

publicstaticvoid main(Args _args)
{


LogisticsElectronicAddresslogisticsElectronicAddress;
DirPartyTable dirPartyTable=DirPartyTable::findRec(VendTable::find("K-DR-000001").Party);

whileselect logisticsElectronicAddress where (logisticsElectronicAddress.RecId == dirPartyTable.PrimaryContactEmail ||
logisticsElectronicAddress.RecId == dirPartyTable.PrimaryContactPhone || logisticsElectronicAddress.RecId == dirPartyTable.PrimaryContactFacebook ||
logisticsElectronicAddress.RecId == dirPartyTable.PrimaryContactFax || logisticsElectronicAddress.RecId == dirPartyTable.PrimaryContactLinkedIn)


{
info(strFmt("%1",logisticsElectronicAddress.Description));
}
}



}






Источник: http://d365technext.blogspot.com/201...r-contact.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.