Use the findOrCreate.map.doCreate method to specify which fields in findOrCreate.map method to use to create a new record if an existing record isn’t found.
Usage
Specifies which fields in your findOrCreate.map method to use to create a new record if an existing record isn’t found. You can specify one or more fields for creating new records.
The type of record to create when an agent accepts a chat with a customer and an existing record isn’t found—for example, a contact record.
Available in API versions 29.0 and later.
fieldName
String
The API name of the field to include in new records. The findOrCreate method begins the API call that finds existing records or create new records when an agent begins a chat with a customer. You must use this method before calling any of the other findOrCreate sub-methods for finding or creating records with the Deployment API.
Available in API versions 29.0 and later.
create
Boolean
Specifies whether to create a new record that contains the field fieldName (true) or not (false). You only need to specify fields for which create equals true. The method will not create records containing fields for which create equals false.