Newer Version Available

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

ConversationMessageDefinitionTranslation

Represents translated labels and constant values for conversation message definitions in Enhanced Messaging and Messaging for In-App and Web.

This complex type is used as a nested element within the ConversationMessageDefinition metadata type and is not deployed as a standalone metadata component. It enables multilingual support by allowing constant values and labels to be translated into different languages for customer-facing messaging.

Note

Parent Type

This type is used as a nested complex type within the ConversationMessageDefinition metadata type.

Version

ConversationMessageDefinitionTranslation is available in API version 61.0 and later.

Fields

Field Name Description
constantValueTranslations
Field Type
ConversationMessageConstantValueTranslation[]
Description
Optional. An array of constant value translations that define translated versions of constants within the messaging component. Each element provides translations for specific constant values that customers see in the messaging interface. Available in API version 61.0 and later.
label
Field Type
string
Description
Required. The translated label or display name for the conversation message definition. This represents the name that agents see when selecting messaging components in their preferred language. Available in API version 61.0 and later.
name
Field Type
string
Description
Required. The unique identifier or name of the conversation message definition being translated. This must match the name of the base ConversationMessageDefinition for which this translation is created. Available in API version 61.0 and later.

ConversationMessageConstantValueTranslation

Represents a translated constant value for conversation message definitions. Available in API version 61.0 and later.

Field Name Description
name
Field Type
string
Description
Required. The name of the constant value being translated.
value
Field Type
string
Description
Required. The translated value for this constant.

Usage Example

This complex type is used within ConversationMessageDefinition to provide translations. Here's an example context:

1<?xml version="1.0" encoding="UTF-8"?>
2<ConversationMessageDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
3    <fullName>Welcome_Message</fullName>
4    <label>Welcome Message</label>
5    <conversationMessageDefinitionTranslations>
6        <constantValueTranslations>
7            <name>greeting_text</name>
8            <value>Bienvenido</value>
9        </constantValueTranslations>
10        <label>Mensaje de Bienvenida</label>
11        <name>Welcome_Message</name>
12    </conversationMessageDefinitionTranslations>
13</ConversationMessageDefinition>