Find and Create Records Pre-Chat API Code Sample

Test and preview how to automatically create records when a customer completes a pre-chat form using this code sample.

The following code searches for and creates records when a customer completes a pre-chat form using the following methods:

  • findOrCreate.map
  • findOrCreate.map.doFind
  • findOrCreate.map.isExactMatch
  • findOrCreate.map.doCreate
  • findOrCreate.saveToTranscript
  • findOrCreate.showOnCreate
  • findOrCreate.linkToEntity