Get company info
•
Version: 10
Some tooltip text!
• 1 minute to read
• 1 minute to read
You can access a company in three ways. Each will return false if the company is unknown.
Bool load(Integer id)
Brings up the company with the given ID. This is always the 1st step when you want to do anything with an existing company.
Company c;
c.load(2);
Bool loadFromAgentAndKey(Integer agent, String key)
Brings up the company owned by the agent and matching the external key.
Caution
loadFromAgentAndKey()
might overwrite existing values!
Bool findFromDomain(String domain)
Brings up the company based on its domain.
Company c;
c.findFromDomain("superoffice.com");
String getValue(String colName)
Fetches the value from a named field.
Company c;
c.load(2);
print(c.getValue("name"));