November 13, 2012

Get Customer Information

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 :


2 comments:

  • Anonymous says:
    11/04/2015

    (I know, three years old, but) Umm...your email address is a phone number.

  • nbhatti2001 says:
    12/18/2015

    Nice, Thanks it help me.

Post a Comment