Newer Version Available
Salesforce Console Integration Toolkit Methods Supported in Lightning Console JavaScript API
This table lists the Salesforce Console Integration Toolkit methods that you can use in
Lightning Console JavaScript API starting with API version 42.0.
Salesforce Console
Integration Toolkit methods that aren’t supported in Lightning Experience result in a failure
error message.
Methods for Primary Tabs and Subtabs
Methods for Application-Level Custom Console Components
The following methods must be called from within a Lightning utility.
Methods for Navigation Tabs
| Salesforce Classic Method | Supported in Lightning Console | Notes about Use in Lightning Console |
|---|---|---|
| focusNavigationTab() | ![]() |
|
| getNavigationTabs() | ![]() |
|
| getSelectedNavigationTab() | ![]() |
|
| refreshNavigationTab() | ![]() |
|
| setSelectedNavigationTab() | ![]() |
Methods for Console Events
| Salesforce Classic Method | Supported in Lightning Console | Notes about Use in Lightning Console |
|---|---|---|
| addEventListener() | ![]() |
sforce.console.ConsoleEvent.CONSOLE_LOGOUT isn’t supported in the
Lightning API. sforce.console.ConsoleEvent.CLOSE_TAB returns the ID of the closed tab only. The Lightning API doesn’t return the objectId or the tabObjectId. The Lightning API doesn’t return special message responses from custom keyboard shortcuts. However, if the response is from a console event, the message includes payload details. |
| fireEvent() | See notes | fireEvent() returns success true even when eventListeners for the given eventType are removed. |
| removeEventListener() | ![]() |

