function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Parteek Goyal 59Parteek Goyal 59 

How to relate Case to a Chat Transcript using Live Agent Pre-chat API, When more then one case are in search result?

Hi All,

How can we relate chat transcript to a case when mutiple cases are in search result.

Please Help.

Thanks,
Parteek
NagendraNagendra (Salesforce Developers) 
Hi Prateek,

You can automatically attach the transcript to a record i.e. a case by using the saveToTranscript method. Depending on whether you are using the pre-chat API or deployment API all you have to do is follow the instructions on the developer guide to automatically related the transcript to the case.
findOrCreate.saveToTranscript
Syntax:
<input type="hidden" name= "liveagent.prechat.findorcreate.saveToTranscript: String
    entityName" value= "String transcriptFieldName" />
Please let us know if this helps.

Thanks,
Nagendra

 
Parteek Goyal 59Parteek Goyal 59
Hi Nagendra,

Thanks for your reply.
I am using the pre-chat API and when I am searching the case using findOrCreate property, it is returning three case records in search result. So now I am not able to understand that how to relate the transcript with one case or opened case.

Thanks,
Parteek