Newer Version Available

This content describes an older version of this product. View Latest

lightning:omniChannelLoginSuccess

Indicates that an agent has been logged into Omni-Channel successfully.

Response

Name Type Description
statusId string The ID of the agent’s current presence status.

Example

This example prints a line to the browser’s developer console when an Omni-Channel user logs into Omni-Channel successfully.

Component code:

1<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
2    <lightning:omniToolkitAPI aura:id="omniToolkit" />  
3    <aura:handler event="lightning:omniChannelLoginSuccess" action="{! c.onLoginSuccess }"/>
4</aura:component>

Controller code:

1({
2    onLoginSuccess : function(component, event, helper) {
3        console.log("Login success.");
4        var statusId = event.getParam('statusId');
5        console.log(statusId);
6    }, 
7})