Newer Version Available

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

EmbeddedServiceBranding

Represents the branding for each Embedded Service deployment. This type extends the Metadata metadata type and inherits its fullName field.

This object works only with the legacy chat products. For Messaging for In-app and Web, use the BrandingSet object.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Important

File Suffix and Directory Location

EmbeddedServiceBranding components are stored in the developer_name.EmbeddedServiceBranding file in the EmbeddedServiceBranding folder.

Version

EmbeddedServiceBranding is available in API version 39.0 and later.

Fields

Field Name Field Type Description
contrastInvertedColor string Accent branding color used in the embedded component, displayed as a hexadecimal value. Changes made to this field in the API aren’t reflected in the embedded component.
contrastPrimaryColor string Accent branding color used in the embedded component, displayed as a hexadecimal value.
embeddedServiceConfig string Required. The Embedded Service configuration that this branding applies to.
font string Font used in the text of the embedded component.
height int Height of the embedded component. Available in API version 43.0 and later.
masterLabel string Required. The name of the Embedded Service configuration node.
navBarColor string Color used for the header in the embedded component, displayed as a hexadecimal value.
navBarTextColor string Color used for the text and icons in the header in the embedded component, displayed as a hexadecimal value. Available in API version 49.0 and later.
primaryColor string Primary branding color used in the embedded component, displayed as a hexadecimal value.
secondaryColor string Secondary branding color used in the embedded component, displayed as a hexadecimal value.
secondaryNavBarColor string Secondary branding color used for the header in the embedded component, displayed as a hexadecimal value. It applies to the header in the chat feature when it's trying to reconnect because of lost internet connection. Available in API version 49.0 and later.
width int Width of the embedded component. Available in API version 43.0 and later.

Declarative Metadata Sample Definition

The following is an example of an EmbeddedServiceBranding file.

1<?xml version="1.0" encoding="UTF-8"?>
2<EmbeddedServiceBranding xmlns="http://soap.sforce.com/2006/04/metadata">
3    <contrastInvertedColor>#ffffff</contrastInvertedColor>
4    <contrastPrimaryColor>#333333</contrastPrimaryColor>
5    <embeddedServiceConfig>EswConfig001</embeddedServiceConfig>
6    <font>Salesforce Sans</font>
7    <height>498</height>
8    <masterLabel>EmbeddedServiceBranding_Parent04IRM000000002a_16033cd2c16</masterLabel>
9    <navBarColor>#222222</navBarColor>
10    <primaryColor>#222222</primaryColor>
11    <secondaryColor>#005290</secondaryColor>
12    <width>320</width>
13</EmbeddedServiceBranding>

Wildcard Support in the Manifest File

This metadata type doesn’t support the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.