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.displayToAgent method to specify which pre-chat details will be displayed to agents for incoming chats in the widget and in the Details tab when they receive a chat request.
Specifies which pre-chat details to display to an agent in the Details tab in Salesforce console when the agent receives a chat request. Typically, this method is only used to hide particular custom details from the agent but setting its value to false.
Available in API versions 29.0 and later.
<input type= “hidden” name= “liveagent.prechat.findorcreate.displayToAgent: String detailName” value= “Boolean display” />
| Name | Type | Description | Available Versions |
|---|---|---|---|
detailName | String | The name of the detail to display to an agent when they receive a chat request. | Available in API versions 29.0 and later. |
display | Boolean | Specifies whether to display the custom detail to an agent in the chat notifications and Details tab (true) or not (false). | Available in API versions 29.0 and later. |
You only need to specify details for which display equals false. The method will not display details for which display equals false. If you don’t specify the value of the display parameter, the default value is set to true.