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' );        ....