Salesforce Chat

Salesforce

Sample Code for conversationToolKitAPI.getDetailsByRecordId() in Salesforce

Sample Code:Aura Component:<aura:component implements="flexipage:availableForAllPageTypes" access="global">    <lightning:omniToolkitAPI aura:id="omniToolkit" />    <lightning:conversationToolkitAPI aura:id="conversationKit"/>      <aura:handler event="lightning:omniChannelWorkAccepted" action="{!c.onWorkAccepted}"/>    </aura:component>  JavaScript Controller:({            onWorkAccepted:function( component,event,helper ) {                console.log( 'Inside the Work Acceptance' );        ....

Salesforce

How to create Case from Einstein BOT only when Chat is transferred to an agent and change the owner in Salesforce using OmniToolKit?

1. Create the following Apex class.Apex Controller:public class ChatAcceptedController {        @AuraEnabled    public static void updateCase( String strChatTranscriptId, String strUserId ) {                LiveChatTranscript objChatTranscript = [ SELECT Id, CaseId ....