How to find pre-chat info that was passed when the Chat was initiated in Salesforce?

How to find pre-chat info that was passed when the Chat was initiated in Salesforce?

Salesforce Pre-Chat info will be stored in ConversationContextEntry entity when the chat is initiated. So, we can query the ConversationContextEntry entity.

To initiate Salesforce Chat via REST API, please check the following link:

https://www.infallibletechie.com/2021/08/how-to-initiate-chat-in-salesforce.html

Sample SOQL:

SELECT CustomDetailContextKey, CustomDetailContextValue  
FROM ConversationContextEntry 
WHERE ParentId = '5705f000000qZpOAAU'

Video Reference:

Leave a Reply