To get customer information is soo easy, it means get information from CustTable. We can get all about customer information just from this table. It will show in below job script :
static void CustomerInformation(Args _args)
{
CustTable Customer;
CustAccount custAccount = "2014";
;
Customer = CustTable::find(custAccount);
info(strFmt("Customer Name : %1", Customer.Name()));
info(strFmt("Primary Customer Phone : %1", Customer.phone()));
info(strFmt("Primary Customer Fax : %1", Customer.telefax()));
info(strFmt("Primary Customer Email Address : %1", Customer.phone()));
info(strFmt("Primary Customer Site Address : %1", Customer.url()));
info(strFmt("Primary Customer Address : %1", Customer.email()));
}
This is the result :
(I know, three years old, but) Umm...your email address is a phone number.
Nice, Thanks it help me.