function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ben.SchauerhamerBen.Schauerhamer 

Search for a contact through Live Agent API using multiple fields?

I am currently trying to setup Live Agent and am running into difficulties on search. There are two scenarios where a customer could request a chat, the first is through our Account Center where I would pass all of their information through the deployment JavaScript. The second would be using a pre-chat form where the customer can enter their information.

The problem that I have is currently a customer's email can be in the system multiple times but the name could be different due to a spouse using the same email address, or that contact could be duplicated on multiple accounts as a different type of contact. 

I was wondering if it is possible using the "liveagent.prechat.findorcreate.map.doFind:Contact" to search on both email and first name or on email and then the account number, which is the name on the account they are tied to. Or if you can only search on one field.