The Lightning Console API provides specific message channels to react to messaging events.
These subscriptions use APPLICATION_SCOPE (scope="APPLICATION" in Aura). Events are processed workspace-wide.
A single event triggered in one active tab broadcasts to all open tabs at the same time. Background instances of your custom component will also process the payload when a console user has multiple messaging sessions open.
As a result, background tabs can:
handleMessage(message) {
// Stop execution if the event belongs to a different open tab
if (this.recordId !== message.recordId) {
return;
}
// Execute your custom logic here
}
onConversationEvent: function(component, event, helper) {
var currentRecordId = component.get("v.recordId");
var eventRecordId = event.getParam("recordId");
// Stop execution if the event belongs to a different open tab
if (currentRecordId !== eventRecordId) {
return;
}
// Execute your custom logic here
}
Please review the following Salesforce documentation links.
005388743

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.