EmbeddedServiceMenuSettings defines a channel menu deployment: the customer-facing menu of ways to contact a business. It combines menu items, visibility settings, labels, branding, and optional customizations.
The menu connects to separately configured communication channels; it does not define every channel it presents. Menu items and label bindings are nested within the menu settings, while referenced sites, branding, channel configurations, labels, and static resources are separate metadata components.
Key Elements
Fields such as channelType and the operating-system flags belong to entries in embeddedServiceMenuItems, not to the deployment itself.
| Element | What the Element Controls |
|---|---|
masterLabel |
Required name of the channel menu deployment. |
site |
Required name of the connected Experience site or website. References CustomSite. |
branding |
Optional developer name of the associated BrandingSet. |
isEnabled |
Enables or disables the whole deployment. Defaults to true. |
embeddedServiceMenuItems |
The nested entries representing the contact options in the menu. |
itemName, displayOrder
|
itemName is a unique custom name visible in the user interface. displayOrder controls the item's position in the menu, not execution or routing order. |
channelType, channel
|
channelType accepts EmbeddedMessaging, EmbeddedServiceConfig, MessagingChannel, Phone, or CustomURL. channel identifies the configured channel and is null for Phone and CustomURL. |
phoneNumber, customUrl, shouldOpenUrlInSameTab
|
Phone items use phoneNumber. CustomURL items use customUrl; for those items, shouldOpenUrlInSameTab opens the link in the same tab when true and a new tab when false. |
isDisplayedOnPageLoad |
Controls whether an individual menu item is displayed when the page loads. |
osOptionsHideInIOS, osOptionsHideInLinuxOS, osOptionsHideInMacOS, osOptionsHideInWindowsOS, osOptionsHideInOtherOS
|
Each flag hides the item on the corresponding operating system when true. osOptionsHideInOtherOS covers systems other than iOS, Linux, Mac, and Windows. |
iconUrl |
URL of a custom menu-item icon. Icon support is limited to phone, SMS, custom URL, and chat menu items. |
embeddedServiceCustomLabels |
Label bindings at deployment or item level. Each binding uses customLabel to reference a label, labelKey to identify the interface text, and feature to identify the feature. For channel menus, feature is ChannelMenu. |
embeddedServiceCustomizations |
Nested customizations, each with a required customizationName, an optional description, and required embeddedServiceResources. |
embeddedServiceResources, resource
|
Resource bindings within a customization. resource is documented as the required ID of the static resource containing the customization's JavaScript file. |
resourceType |
Required customization feature. Salesforce documents Chat-only support with ChatInvitation as the valid value. The exposed enumeration also includes SettingsFile, but that alone does not establish support for channel-menu customizations. |
Behavior and Constraints
Deployment enablement and item visibility
isEnabled applies to the entire deployment. It is separate from an item's isDisplayedOnPageLoad setting and operating-system hiding flags.
When a contact option is missing, distinguish a disabled deployment from an item that is not displayed on page load or is hidden on the customer's operating system. An enabled deployment does not override those item-level settings.
Channel selection
EmbeddedMessaging, EmbeddedServiceConfig, and MessagingChannel represent configured communication channels. Recognized metadata references through the nested channel element include EmbeddedServiceConfig and MessagingChannel.
For Phone, provide the destination through phoneNumber and leave channel null. For CustomURL, use customUrl and leave channel null. The same-tab behavior of shouldOpenUrlInSameTab applies to CustomURL items; it is not a general navigation setting for every channel type.
Do not infer custom-icon support from the list of channelType values. The documented icon categories are phone, SMS, custom URL, and chat.
Labels and customizations
embeddedServiceCustomLabels can appear both at deployment level and inside an individual menu item. Each customLabel references a separate CustomLabel, while labelKey identifies the interface label being customized. The shared feature enumeration contains values for other features, but those values do not become applicable to channel menus; the channel-menu value is ChannelMenu.
Customizations follow a menu-to-customization-to-resource structure. The menu does not store the JavaScript body directly. Instead, each customization contains embeddedServiceResources entries whose resource values reference static resources.
A required customizationName must begin with a letter and contain only alphanumeric characters and underscores. It cannot contain spaces, end with an underscore, or contain two consecutive underscores.
Deployment and Retrieval
EmbeddedServiceMenuSettings does not support the wildcard character * in package.xml. Retrieval and deployment manifests must list the intended components explicitly. The type inherits the fullName field from Metadata; masterLabel supplies the required deployment name.
Menu items, custom-label bindings, customizations, and their resource bindings are nested configuration within the menu settings component. Their presence does not make the referenced assets part of the menu definition.
The separate dependencies can include the connected site, branding, channel configurations, custom labels, and static resources. The dependency set depends on the references populated in a particular deployment, not on every possible channel type or customization supported by the schema.
Do not assume a channel developer name is always the serialized value of channel. Salesforce describes that field as an ID, but its sample uses Chat. Likewise, resource is documented as a static resource ID, whereas branding is explicitly documented as a developer name.
Relationships
The outgoing references connect the menu to its site and branding, its configured communication channels, and the labels and JavaScript resources used by nested configuration. These are possible connections; only populated references identify dependencies for a particular menu.
References
-
BrandingSet:branding. -
CustomSite:site. -
EmbeddedServiceConfig:channelwithin a menu item. -
MessagingChannel:channelwithin a menu item. -
CustomLabel:customLabelwithin deployment-level or item-level label bindings. -
StaticResource:resourcewithin a customization'sembeddedServiceResources.
Documentation Inconsistencies
-
Customization resource types: Salesforce's field description limits customization support to Chat and lists
ChatInvitationas the validresourceType. The exposed enumeration also includesSettingsFile. The enumeration alone does not establish thatSettingsFileworks for channel-menu customizations. -
Channel identifier format: Salesforce describes
channelas the channel ID, but the sample suppliesChatfor anEmbeddedServiceConfigitem. That example does not establish a general rule that channel references serialize as developer names.
Reported Issues
-
Direct Apex queries were reported unavailable for this type. A 2021 community inventory listed
EmbeddedServiceMenuSettingsamong Tooling API objects that were absent from the ApexSchemanamespace and therefore could not be queried directly with SOQL in Apex. This report concerns Apex query access, not Metadata API retrieval. See the Apex queryability discussion.
Common Questions
Why is a channel menu item missing even though the deployment is enabled?
Deployment enablement and item visibility are separate. Check the item's isDisplayedOnPageLoad setting and the hiding flag for the customer's operating system. isEnabled does not override either setting.
Can I retrieve all EmbeddedServiceMenuSettings components with a wildcard?
No. This type does not support * in package.xml. List the intended components explicitly in retrieval and deployment manifests.
What should channel contain for Phone and CustomURL menu items?
channel is null for both. A Phone item uses phoneNumber; a CustomURL item uses customUrl. For a custom URL, shouldOpenUrlInSameTab selects the same tab when true and a new tab when false.
Does deploying the menu also define its channels, labels, and JavaScript?
No. The menu contains nested configuration and references separate assets. Channel configurations, custom labels, and static resources remain separate metadata dependencies. Customization JavaScript resides in a referenced static resource, not directly in the menu settings.
Is SettingsFile supported as a channel-menu resourceType?
Its presence in the exposed enumeration does not establish support. Salesforce documents Chat-only customization support and lists ChatInvitation as the valid value.