AX / D365FO – Get Customer Primary email address, phone, fax, Website url

To get the Customer Primary contact informations like e-mail address, phone number, web site url and fax number you can use these 4 methods

str mail, phone, fax, webSite;

//Get Customer Email
mail = CustTable::find('1234').email();

//Get Customer Phone
phone = CustTable::find('1234').phone();

//Get Customer Fax
fax = CustTable::find('1234').telefax();

//Get Customer WebSite
webSite = CustTable::find('1234').url();

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s