Wednesday, 15 August 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

Adding a newline into a string in C# and X++

Below is the sample code we can use for  adding a newline after every occurrence of "@" symbol in the string in C#   using System...