Editar

Compartilhar via


lcw:onClose event (Omnichannel for Customer Service JavaScript API reference)

Omnichannel for Customer Service offers a suite of capabilities that extend the power of Dynamics 365 Customer Service Enterprise to enable organizations to instantly connect and engage with their customers across digital messaging channels. An additional license is required to access Omnichannel for Customer Service. For more information, see the Dynamics 365 Customer Service pricing overview and Dynamics 365 Customer Service pricing plan pages.

This event is triggered when the customer engaged on the chat widget has closed the widget. You can use this event to create custom experiences around closure of the chat widget.

When an agent ends a conversation, a call can be made to closeChat() in order to end the conversation on the client side. This event is raised when the closeChat() SDK method is called.

Example

window.addEventListener("lcw:onClose", function handleWidgetCloseEvent(){ // Handle the live chat widget close event }); 

lcw:ready
lcw:error
lcw:chatRetrieved
lcw:chatQueued
lcw:closeChat
lcw:startChat
lcw:onMinimize
lcw:onMaximize
lcw:onMessageReceived
lcw:onMessageSent
lcw:threadUpdate
Live chat SDK JavaScript API reference