27 June 2021

X++ code to get contact person Vendor/Customer which is specified in the Purchasing demographics AX 2012 / D365 FO

Table relations:

contactPerson.CONTACTPERSONID == VendTable.contactPersonId

DirPartyTable.RecId  == ContactPerson.Party

Below is the single line logic to get it.

 ContactPerson::find(VendTable::find("US-104").ContactPersonId).personName()




No comments:

Post a Comment

Give me the commetns and solutions

AXmodel file import in D365 F&O

 ModelUtil.exe -import -metadatastorepath=k:\aosservice\packageslocaldirectory -file=C:\Temp\DEST.axmodel