I'm using the Live Agent Deployment API to trigger the live chat flow, before initialize the chat window we also run saveToTranscript to associate a Case to LiveChatTranscript by filling the case id, the following is our code:

liveagent.findOrCreate('Case').map('CaseNumber', 'Case Number', true, true, true).saveToTranscript('CaseId');
liveagent.init(chatSettings.chat.endpointUrl, chatSettings.chat.deploymentId, chatSettings.chat.organizationId);

In most cases, this flow is working correctly(CaseId field is filled correctly in LiveChatTranscript) without any issue, but don't know why there are still some LiveChatTranscript records that generated in Salesforce has Completed status while their CaseId field is empty:

enter image description here

I also looked into some of those problematic LiveChatTranscript records in detail and their history, they have nothing in common(Different browsers/device), and all other fields are correctly filled except for the CaseId, which appears to me that the conversation between agents and visitor goes well.

Is there anyone encountered such issue or has any insight how we can debug it further?

By the way, we have no any Trigger/Workflow/Process for LiveChatTranscript

Very appreciate any thoughts around this.


We had the same issue on our Org. We already opened a ticket with Salesforce.

So wish you/us luck. Thing has escalated already.

Workaround is to use an on before trigger on the LiveChatTranscript to manually create the Case.

  • Thanks for sharing this info, probably I will also submit a ticket to push them a bit as well ;). The workaround I have in mind is to made additional ajax call from visitor's Live Chat window to our api and try to sync the CaseId into LiveChatTranscript via ChatKey. – SeanEleven Mar 8 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.