Get customer info
•
Version: 10
Some tooltip text!
• 1 minute to read
• 1 minute to read
Bool load(Integer id)
Brings up the customer with the given ID. This is always the 1st step when you want to do anything with an existing customer.
Customer c;
c.load(2);
Bool loadFromAgentAndKey(Integer agent, String key)
Brings up the customer that is owned by the agent and matches the external key.
Caution
loadFromAgentAndKey()
might overwrite existing values!
String getValue(String colName)
Fetches the value from a named field. Look up names in the reference section down below.
Customer c;
c.load(7);
print(c.getValue("firstname"));