Wednesday, August 15, 2018

Get vendor primary contact number in ax 2012 x++

Hi,

Please is the code for vendor primary contact number.


LogisticsElectronicAddress logisticsElectronicAddress;
DirPartyTable dirPartyTable;

select firstOnly logisticsElectronicAddress where logisticsElectronicAddress.RecId == DirPartyTable::findRec(VendTable::find(‘V00097′).Party).PrimaryContactPhone;

info(strFmt(“%1″,logisticsElectronicAddress.Description));
Share this:

No comments:

Post a Comment

Why do users often get confused about Dynamics 365 Customer Engagement (D365 CE), Dataverse, and the Power Platform?

  The Microsoft ecosystem for business applications can sometimes be difficult to navigate, especially when discussing Dynamics 365 Customer...