getCustomer
Retrieves a customer record by name. A SOAP error envelope is returned if the operation fails.
To retrieve a customer based on record ID, use getCustomerByRecordID.
To edit a customer, use editCustomer or editCustomerByRecordID.
Parameters
| Parameter | Type | Description |
|---|---|---|
| cookie | long | Session cookie returned by projectLogon. |
| firstName | string | Customer’s first name. |
| middleInitials | string | Customer’s middle initials. |
| lastName | string | Customer’s last name. |
Return value
| Value | Type |
|---|---|
| pCustomer | CUser |
Example
CUser cust = ttsdk.getCustomer(cookie, "Firstname", "", "Lastname");