EmbeddedServiceConfig
Parent Type
File Suffix and Directory Location
EmbeddedServiceConfig components have the suffix .EmbeddedServiceConfig and are stored in the EmbeddedServiceConfig folder.
Version
EmbeddedServiceConfig is available in API version 37.0 and later.
Fields
Field Name | Field Type | Description |
---|---|---|
areGuestUsersAllowed | boolean | Specifies whether a user must be logged in to access an embedded component. Available in API version 45.0 and later. |
authMethod | EmbeddedServiceAuthMethod (enumeration of type string) | Type of login method selected for this Embedded Service deployment. Valid
values are:
|
branding | string | The branding set that has all of the branding configurations for this Embedded Service configuration. Available in API version 52.0 and later. |
customMinimizedComponent | string | The custom Lightning component that’s used in this Embedded Service deployment in its minimized state. Available in API version 43.0 to 45.0. |
deploymentFeature | EmbeddedServiceDeploymentFeature(enumeration of type string) | The conversation type of this Embedded Service deployment. Valid values are:
|
deploymentType | EmbeddedServiceDeploymentType (enumeration of type string) | The platform this Embedded Service is deployed to. Valid values are:
|
embeddedServiceAppointmentSettings | EmbeddedServiceAppointmentSettings[] | The settings of the Embedded Service deployment whose deploymentFeature is FieldService. Available in API version 46.0 and later. |
embeddedServiceCustomComponents | EmbeddedServiceCustomComponent[] | The custom components used in this Embedded Service deployment. Available in API version 44.0 and later. |
embeddedServiceCustomLabels | EmbeddedServiceCustomLabel[] | The custom labels used in this Embedded Service deployment. Available in API version 44.0 and later. |
embeddedServiceCustomizations | EmbeddedServiceCustomization[] | The customizations used in this Embedded Service deployment. Each customization is associated with a static resource. Available in API version 50.0 and later. |
embeddedServiceFlowConfig | EmbeddedServiceFlowConfig[] | Represents a setup node for creating an embedded flow. Available in API version 45.0 and later. |
embeddedServiceFlows | EmbeddedServiceFlow[] | All of the flows used by this Embedded Service deployment. Available in API version 45.0 and later. |
embeddedServiceLayouts | EmbeddedServiceLayout[] | The layout of an Appointment Management deployment of an Embedded Service. Available in API version 44.0 and later. |
isEnabled | boolean | Indicates if this Embedded Service deployment is enabled (true). |
isTermsAndConditionsEnabled | boolean | Indicates whether Terms and Conditions is displayed. Displaying Terms and Conditions is supported if the deploymentFeature is either EmbeddedMesssaging or LiveAgent. The default is false. Available in API version 59.0 and later. |
isTermsAndConditionsRequired | boolean | Indicates whether acceptance of the Terms and Conditions is required before starting a chat. Displaying Terms and Conditions is supported if the deploymentFeature is either EmbeddedMesssaging or LiveAgent. The default is false. Available in API version 59.0 and later. |
masterLabel | string | Required. The name of the Embedded Service configuration node. Available in API version 37.0 and later. |
shouldHideAuthDialog | boolean | Specifies whether the prompt that the customer log in again during a flow is hidden (true) or not (false). When it’s hidden, the customer is taken directly to your login page. This field is set to false by default. Available in API version 43.0 and later. |
site | string | Required. The name of the Experience site or website connected to this Embedded Service deployment. Available in API version 37.0 and later. |
EmbeddedServiceAppointmentSettings
Returns the settings of an Embedded Service deployment whose deploymentFeature is FieldService. Available in API version 46.0 and later.
Field Name | Description |
---|---|
appointmentConfirmImg |
|
enabled |
|
homeImg |
|
logoImg |
|
shouldShowExistingAppointment |
|
shouldShowNewAppointment |
|
EmbeddedServiceCustomComponent
Returns a custom component that’s associated with an EmbeddedServiceConfig setup.
Field Name | Field Type | Description |
---|---|---|
customComponent | string | The name of the custom component. |
customComponentType | EmbeddedServiceCustomComponentType (enumeration of type string) | The type of custom component. Valid values are:
|
EmbeddedServiceCustomLabel
Returns a custom label that’s associated with an EmbeddedServiceConfig setup.
Field Name | Field Type | Description |
---|---|---|
customLabel | string | The customized label that appears in the embedded component. |
feature | EmbeddedServiceFeature (enumeration of type string) | The feature that this embedded component uses. Valid values are:
|
labelKey | EmbeddedServiceLabelKey (enumeration of type string) | The type of label for this embedded component. The value corresponds to the label within a label group (substate of chat state or page type). |
EmbeddedServiceCustomization
Returns the customization associated with the Embedded Service feature. Available in API version 50.0 and later.
Field Name | Field Type | Description |
---|---|---|
customizationName | string | Required. The name of the customization applied to the embedded service. This name can contain only underscores and alphanumeric characters and must be unique in an EmbeddedServiceConfig setup. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. |
description | string | A description of the customization. |
embeddedServiceResources | EmbeddedServiceResource[] | Required. The reference to the static resource that contains the javascript file of the customization. |
EmbeddedServiceForm
Field Name | Field Type | Description |
---|---|---|
displayContext | EmbeddedServiceFormDisplayContext (enumeration of type string) | Required. Indicates when we display this form. Values are:
|
isActive | Boolean | Indicates whether the form is active. The default value is false. |
EmbeddedServiceFormField
Field Name | Field Type | Description |
---|---|---|
formField | string or enum | Required. Maps to either a StandardMessingChannelParameter or a CustomMessagingChannelParameter |
messagingChannelParameterType | MessagingChannelParameterType (enumeration of type string) OR StandardMessagingChannelParameter (enumeration of type string) | Required. Indicates whether formField points to a
StandardMessagingChannelParameter or a CustomMessagingChannelParameter. Please match
the Enum value here to the formField passed in. Valid values for
MessagingChannelParameterType are:
|
formFieldType | EmbeddedServiceFormFieldType (enumeration of type string) | Required. Indicates the type of data is passed by the End User when filling out
the Prechat form. Valid values are:
|
displayOrder | Integer | Indicates the relative order of the form field in the prechat form. For Prechat fields where isHidden is set to true displayOrder must be set to -1. For Prechat fields where isHidden is set to false, this value must be greater than or equal to 0. |
isRequired | Boolean | Indicates whether a Prechat form field is required. If isHidden is set to true, isRequired must be set to false. |
isHidden | Boolean | Indicates whether a Prechat form field is displayed in the UI. isHidden can only be set to true if the formField field is set to CustomMessagingChannelParameter and messagingChannelParameterType is set to Custom. |
choiceList | ChoiceList | The choice list that's associated with EmbeddedServiceFormField. ChoiceList can only be associated if the formField is set to CustomMessagingChannelParameter and messagingChannelParameterType is set to Custom. |
embeddedServiceCustomLabels | EmbeddedServiceCustomLabel[] | The custom label for this field. |
embeddedServiceMessagingChannel
deploymentFeature
Field Name | Field Type | Description |
---|---|---|
businessHours | String | The Business Hours record that’s associated with this specific embedded service deployment. |
isEnabled | Boolean | Required. Indicates whether this embedded service deployment is enabled. |
messagingChannel | String | Required. The MessagingChannel record that’s associated with this specific embedded service deployment. |
shouldShowDeliveryReceipts | Boolean | Required. Indicates whether delivery receipts are shown in the UI. |
shouldShowEmojiSelection | Boolean | Required. Indicates whether emoji selection is shown in the UI. |
shouldShowReadReceipts | Boolean | Required. Indicates whether read reciepts are shown in the UI. |
shouldShowTypingIndicators | Boolean | Required. Indicates whether typing indicators are shown in the UI. |
shouldStartNewLineOnEnter | Boolean | Required. Indicates whether pressing Enter starts a new line of text in the UI. |
EmbeddedServiceResource
Returns the static resource associated with the Embedded Service Chat feature customization. Available in API version 50.0 and later.
Field Name | Field Type | Description |
---|---|---|
resource | string | Required. The ID of the static resource that contains the javascript file of the customization. |
resourceType | EmbeddedServiceResourceType (enumeration of type string) | Required. The embedded service feature to customize. Valid values are:
|
EmbeddedServiceFlow
Returns an embedded flow that’s associated with an EmbeddedServiceConfig setup.
Field Name | Field Type | Description |
---|---|---|
flow | string | The developer name of the flow. |
flowType | EmbeddedServiceFlowType(enumeration of type string) | The type of flow. Valid values are:
|
isAuthenticationRequired | boolean | Indicates whether users are required to log in to access the Embedded Service component. The value can’t be true for the FS_Flow value and must be true for all other values. |
EmbeddedServiceFlowConfig
Returns the EmbeddedServiceFlowConfig type.
Field Name | Field Type | Description |
---|---|---|
enabled | boolean | Indicates whether the embedded flow is enabled. |
EmbeddedServiceLayout
Returns the layout of an Embedded Service deployment whose deploymentFeature is FieldService. Available in API version 44.0 and later.
Field Name | Field Type | Description |
---|---|---|
embeddedServiceLayoutRules | EmbeddedServiceLayoutRule[] | The appointment statuses that the layout of the Embedded Service deployment is valid for. |
layout | string | The FlexiPage that represents the layout of this Embedded Service deployment. |
layoutType | EmbeddedServiceLayoutType (enumeration of type string) | The type of layout applied to the Embedded Service deployment. Values are:
|
EmbeddedServiceLayoutRule
Returns an appointment status for which the Embedded Service layout is valid for. This subtype is for Embedded Service deployments whose deploymentFeature is FieldService. Available in API version 44.0 and later.
Field Name | Field Type | Description |
---|---|---|
appointmentStatus | string | The service appointment status that the EmbeddedServiceLayout subtype is valid for. |
Declarative Metadata Sample Definition
The following is an example of an EmbeddedServiceConfig file.
<?xml version="1.0" encoding="UTF-8"?>
<EmbeddedServiceConfig xmlns="http://soap.sforce.com/2006/04/metadata">
<areGuestUsersAllowed>false</areGuestUsersAllowed>
<deploymentType>Mobile</deploymentType>
<deploymentFeature>EmbeddedMessaging</deploymentFeature>
<masterLabel>ESWOne</masterLabel>
<shouldHideAuthDialog>false</shouldHideAuthDialog>
<embeddedServiceMessagingChannel>
<isEnabled>true</isEnabled>
<shouldShowTypingIndicators>false</shouldShowTypingIndicators>
<shouldShowReadReceipts>false</shouldShowReadReceipts>
<shouldShowDeliveryReceipts>false</shouldShowDeliveryReceipts>
<shouldShowEmojiSelection>false</shouldShowEmojiSelection>
<shouldStartNewLineOnEnter>false</shouldStartNewLineOnEnter>
<messagingChannel>EM1</messagingChannel>
</embeddedServiceMessagingChannel>
<embeddedServiceForms>
<isActive>true</isActive>
<displayContext>Session</displayContext>
<embeddedServiceFormFields>
<displayOrder>0</displayOrder>
<formField>_FirstName</formField>
<messagingChannelParameterType>Standard</messagingChannelParameterType>
<formFieldType>Text</formFieldType>
<isHidden>false</isHidden>
<isRequired>true</isRequired>
<embeddedServiceCustomLabels>
<customLabel>EM_PreChat_Base_PrechatCustomFieldLabel_133xx0000004GG2_5523048</customLabel>
<labelKey>EM_PreChat_Base_PrechatCustomFieldLabel</labelKey>
<feature>EmbeddedMessaging</feature>
</embeddedServiceCustomLabels>
</embeddedServiceFormFields>
<embeddedServiceFormFields>
<displayOrder>1</displayOrder>
<formField>_LastName</formField>
<messagingChannelParameterType>Standard</messagingChannelParameterType>
<formFieldType>Text</formFieldType>
<isHidden>false</isHidden>
<isRequired>true</isRequired>
<embeddedServiceCustomLabels>
<customLabel>EM_PreChat_Base_PrechatCustomFieldLabel_133xx0000004GG2_5523058</customLabel>
<labelKey>EM_PreChat_Base_PrechatCustomFieldLabel</labelKey>
<feature>EmbeddedMessaging</feature>
</embeddedServiceCustomLabels>
</embeddedServiceFormFields>
<embeddedServiceFormFields>
<displayOrder>2</displayOrder>
<formField>FavoriteFood_name</formField>
<messagingChannelParameterType>Custom</messagingChannelParameterType>
<formFieldType>ChoiceList</formFieldType>
<isHidden>false</isHidden>
<isRequired>true</isRequired>
<choiceList>Food</choiceList>
</embeddedServiceFormFields>
</embeddedServiceForms>
</EmbeddedServiceConfig>
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.