web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

Code to update customer phone number on AX2012 R2

SANTOSH KUMAR SINGH Profile Picture SANTOSH KUMAR SINGH 1,224
This is code to  update customer phone number on AX2012 R2. You can check this code through simple small job.

DirPartyPhoneNoView PhoneNo;
ContactPerson contactperson;
CustTable custTable;

custTable = CustTable::Find("C45102");
PhoneNo = PhoneNo::find(custTable.Party);
PhoneNo.Locator = '6567767657';
PhoneNo.Type = LogisticsElectronicAddressMethodType::Phone;
PhoneNo.IsPrimary = true;
contactPersonEntity.createOrUpdatePhoneNo(PhoneNo);

This was originally posted here.

Comments

*This post is locked for comments