How to save the custom detail to a custom field on Chat Transcript object(LiveChatTranscript) in Salesforce?

Chat Transcript object have several standard fields. For Example, Chat Button in Chat Transcript object stores the chat button id that the visitor clicked to initiate the chat.Reference Link:https://help.salesforce.com/articleView?id=live_agent_transcript_fields.htm&type=5 To save the custom detail to a custom field on LiveChatTranscript at the end of a chat, use the belowliveagent.addCustomDetail().saveToTranscript() Example:liveagent.addCustomDetail( ‘Company’, ‘Acme’ ).saveToTranscript( ‘Company__c’ );Here … Continue reading How to save the custom detail to a custom field on Chat Transcript object(LiveChatTranscript) in Salesforce?