findOrCreate.map

Use the findOrCreate.map method to search for or create records that contain specific customer details.

Usage

Searches for or creates records that contain the customer data that’s specified in the pre-chat form that the customer completes. This method maps the value of the custom details to the fields on the specified record in the Salesforce console.

You can call the findOrCreate.map method as many times as necessary to find the appropriate records. You can list multiple fields and their corresponding details to map the detail values to the appropriate fields within the record.

Available in API versions 29.0 and later.

Syntax

<input type= "hidden" name= "liveagent.prechat.findorcreate.map: String entityName" value= "String fieldName, String detailName;" />

Parameters

Name Type Description Available Versions
entityName String The type of record to search for or create when an agent accepts a chat with a customer, for example, a contact record Available in API versions 29.0 and later.
fieldName String The name of the field in the record EntityName to which to map the corresponding custom detail value Available in API versions 29.0 and later.
detailName String The value of the custom detail to map to the corresponding field fieldName Available in API versions 29.0 and later.