Subscribe to Lobby Management Greeter Dashboard Events
When a greeter changes the service territory in the Lobby Management dashboard,
Salesforce Scheduler publishes a Lightning Message Service (LMS) event on the
lightning__appointmentBooking_greeterDashboard channel. Subscribe from a
custom Lightning web component or Aura component to keep custom waitlists, appointments, or
data views in sync with the selected territory.
Required Editions
Available in: Lightning Experience.
Available in: Enterprise and Unlimited Editions
Channel
Channel Name
lightning__appointmentBooking_greeterDashboard
Scope
APPLICATION
Exposure
External. The channel is available across namespaces and to customer code that
runs on the platform.
Message Payload
Property
Data Type
Details
eventType
String
The type of dashboard event. For example,
TERRITORY_CHANGE.
eventData
Object
Data specific to the event. The internal structure depends on the
eventType.
Lightning Web Component Example
To listen to the lightning__appointmentBooking_greeterDashboard event,
import the Lightning Message Service features from
lightning/messageService and pass the channel reference to the
subscribe() method.
({
onGreeterDashboardMessage: function(cmp, evt, helper) {
var eventType = evt.getParam('eventType');
var eventData = evt.getParam('eventData');
if (eventType === 'TERRITORY_CHANGE') {
console.log("Territory changed:", JSON.stringify(eventData));
}
}
})
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
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
Always Active
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
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
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.