Customer.findFromAgentAndKey(Integer agent, String key)
Finds a customer entry in the database based on the given agent id and external key.
This function will find a customer entry in the database based on an agent id and an external key.
- agent: The agent id for the external entry. Implicitly defines the external datasource.
- key: The primary key of the external entry.
Returns the id for the customer entry in the database, or -1 if not found.