About This Guide
Prerequisites
API Versions
findOrCreate.saveToTranscript
findOrCreate.showOnCreate
findOrCreate.linkToEntity
findOrCreate.displayToAgent
Find and Create Records Pre-Chat API Code Sample
Use the findOrCreate.showOnCreate method to find or create a record and automatically open it in a subtab in the Salesforce console.
Opens the record you created using the findOrCreate.map.doCreate and findOrCreate.map.doFind Pre-Chat API methods automatically in a subtab in the to the Salesforce console.
Available in API versions 29.0 and later.
<input type= “hidden” name= “liveagent.prechat.findorcreate.showOnCreate: String entityName” value= “Boolean show” />
| 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. |
show | Boolean | Specifies whether to display the record you created in a subtab in the Salesforce console (true) or not (false). | Available in API versions 29.0 and later. |