Newer Version Available

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

ConversationMessageDefinition

Represents a messaging component in an Enhanced Messaging channel or Messaging for In-App and Web session.

Parent Type

This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

ConversationMessageDefinition components have the suffix .conversationMessageDefinition and are stored in the conversationMessageDefinitions folder.

Version

ConversationMessageDefinition is supported for use in enhanced Messaging channels and Messaging for In-App and Web, and is available in API version 59.0 and later.

Fields

Field Name Description
constants
Field Type
ConversationMessageConstant[]
Description
An array of constants that defines the messaging components. Constants support multiple data types, including text, URL, and image.
description
Field Type
string
Description
The description of the conversation message definition.
label
Field Type
string
Description
A user-friendly name for ConversationMessageDefinition, which is defined whenConversationMessageDefinition is created.
language
Field Type
string
Description
The language of the conversation message definition.
messageHandlers
Field Type
ConversationMessageHandler[]
Description
An array of message handlers.
messageLayouts
Field Type
ConversationMessageLayout[]
Description
An array of message layouts.
optionsParameter
Field Type
ConversationMessageOptionsParameter[]
Description
An array of options parameter of the ConversationMessageDefinition.
parameters
Field Type
ConversationMessageParameter[]
Description
An array of parameters.
type
Field Type
ConversationMessageDefinitionType (enumeration of type string)
Description

Required. The type of the conversation message definition. Valid values are:

  • Action
  • AuthenticationRequest
  • AutoResponse
  • Link
  • Notification
  • PaymentRequest
  • Picklist
  • RecordPicker
  • RecordView
  • TimePicker

ConversationMessageConstant

Represents a constant value on the messaging component. When a messaging component is created in the UI, the text and images entered during creation are saved as standard constants. Custom constants can also be added.

Field Name Description
compositeValues
Field Type
ConversationMessageConstantCompositeValue[]
Description
An array of composite values of ConversationMessageConstant.
constantType
Field Type
ConversationMessageConstantType (enumeration of type string)
Description

Required. The conversation message constant type. Valid values are:

  • Custom
  • Image
  • Options
  • SubTitle
  • Title
  • Url
label
Field Type
string
Description
The UI label of the conversation message constant.
name
Field Type
string
Description
The name of the conversation message constant.
primitiveValues
Field Type
ConversationMessageConstantPrimitiveValue (enumeration of type string)
Description
An array of primitive values of ConversationMessageConstant.
valueType
Field Type
ConversationMessageValueType (enumeration of type string)
Description

The type of the conversation message constant value. Valid values are:

  • Boolean
  • Date
  • DateTime
  • Double
  • ImageId
  • Integer
  • RecordId
  • Text
  • Url

ConversationMessageConstantCompositeValue

Represents the composite values of the ConversationMessageConstant.

Field Name Description
constantItems
Field Type
ConversationMessageConstant[]
Description
An array of constant items.
identifier
Field Type
string
Description
Required. The client identifier.

ConversationMessageConstantPrimitiveValue

Represents the primitive values of the ConversationMessageConstant.

Field Name Description
contentAssetName
Field Type
string
Description
Represents the value for type = ImageAsset
textValue
Field Type
string
Description
Represents the value for type = Text
type
Field Type
ConversationMessageConstantValueType (enumeration of type string)
Description

Required. The type of the conversation message constant primitive value. Valid values are:

  • ImageAsset
  • Text
  • Url
urlValue
Field Type
string
Description
Represents the value for type = Url

ConversationMessageHandler

Represents the conversation message handler.

Field Name Description
activeRequestDurationMinutes
Field Type
int
Description
Required. The duration of an active request in minutes.
handlerName
Field Type
string
Description
Required. The name of the message handler.
handlerType
Field Type
ConversationMessageHandlerType (enumeration of type string)
Description

Required. The type of message handler. Valid values are:

  • AuthProvider
  • PaymentProvider
  • QuickAction

ConversationMessageLayout

Represents the conversation message layout.

Field Name Description
externalTemplates
Field Type
ConvMsgExternalTemplateVersion[]
Description
The external template version of the ConversationMessageLayout.
formatType
Field Type
ConversationMessageFormatType (enumeration of type string)
Description

Required. The format type of the conversation message layout. Valid values are:

  • Application
  • Buttons
  • Carousel
  • EncryptedOAuthToken
  • ExternalTemplate
  • Inputs
  • ListPicker
  • Media
  • Payment
  • QuickReplies
  • RichLink
  • Text
  • TimePicker
  • WebView
layoutItems
Field Type
ConversationMessageLayoutItem[]
Description
An array of layout items.
messageType
Field Type
ConversationMessageType (enumeration of type string)
Description

Required. The conversation message type. Valid values are:

  • AuthenticationRequest
  • Choices
  • Form
  • PaymentRequest
  • StaticContent

ConvMsgExternalTemplateVersion

Represents the external template version of the conversation message layout.

Field Name Description
accountIdentifier
Field Type
string
Description
Required. The account identifier. For WhatsApp channels, this is the WABA ID.
accountName
Field Type
string
Description
Required. The account name.
language
Field Type
string
Description
Required. The language of the conversation message external template.
status
Field Type
ConvMsgExternalTemplateVersionStatus (enumeration of type string)
Description

Required. The status of the conversation message external template. Valid values are:

  • Approved
  • Disabled
  • InAppeal
  • Paused
  • Pending
  • Rejected
templateName
Field Type
string
Description
Required. The name of the conversation message external template.
templateVersionIdentifier
Field Type
string
Description
Required. The template version identifier.

ConversationMessageLayoutItem

Represents the conversation message layout item.

Field Name Description
collectionType
Field Type
ConversationMessageCollectionType (enumeration of type string)
Description

Required. The type of conversation message collection. Valid values are:

  • DynamicList
  • None
  • StaticList
compositeValues
Field Type
ConversationMessageLayoutCompositeValue[]
Description
An array of composite values of the ConversationMessageLayoutItem.
name
Field Type
string
Description
The name of the conversation message layout item.
primitiveValues
Field Type
ConversationMessageLayoutPrimitiveValue[]
Description
An array of primitive values of the ConversationMessageLayoutItem.

ConversationMessageLayoutCompositeValue

Represents the composite value of the ConversationMessageLayoutItem.

Field Name Description
compositeTypeName
Field Type
string
Description
Required. The name of the conversation message layout composite value type.
layoutItems
Field Type
ConversationMessageLayoutItem[]
Description
An array of layout items.
valueSourceReference
Field Type
string
Description
The source of the conversation message layout composite value.

ConversationMessageLayoutPrimitiveValue

Represents the primitive value of the ConversationMessageLayoutItem.

Field Name Description
contentAssetName
Field Type
string
Description
The content asset name.
fieldName
Field Type
string
Description
The name of the conversation message layout primitive value field.
formulaTemplate
Field Type
string
Description
The formula template defines the content for each entry in the list.
literalValue
Field Type
string
Description
The literal primitive value of the conversation message layout.
mergeFields
Field Type
ConversationMessageMergeField[]
Description
Inserts multiple values to a list.
type
Field Type
ConversationMessageLayoutValueType (enumeration of type string)
Description

Required. The type of the conversation message layout primitive value. Valid values are:

  • FormulaTemplate
  • Literal
  • MediaAsset
  • SourcePrimitiveValue
  • SourceSobjectField
  • SourceSobjectFieldValue
  • SourceSobjectFormula
valueFormula
Field Type
string
Description
The formula of the conversation message layout primitive value.
valueSourceReference
Field Type
string
Description
The source of the conversation message layout primitive value.

ConversationMessageMergeField

Merge field is used to insert multiple values to a list.

Field Name Description
formulaTemplate
Field Type
string
Description
Required. The formula template of the conversation message merge field.
mergeFieldType
Field Type
ConversationMessageMergeFieldType (enumeration of type string)
Description
Required. The type of the conversation message merge field. Valid value is ListTemplate.
name
Field Type
string
Description
Required. The name of the conversation message merge field.
valueSourceReference
Field Type
string
Description
Required. The source of the conversation message merge field value.

ConversationMessageOptionsParameter

Represents a conversation message options parameter.

Field Name Description
compositeTypeDetails
Field Type
ConversationMessageParameterCompositeDetails[]
Description
An array of composite details of ConversationMessageOptionsParameter.
optionsParameterType
Field Type
ConversationMessageOptionsParameterType (enumeration of type string)
Description

Required. The type of conversation message options parameter. Valid values are:

  • CustomCompositeOptions
  • CustomPrimitiveOptions
  • RecordIdOptions
  • TimeSlotOptions
primitiveTypeDetails
Field Type
ConversationMessageParameterPrimitiveDetails
Description
The primitive type details of conversation message options parameter.

ConversationMessageParameterCompositeDetails

Represents the composite details of a conversation message parameter.

Field Name Description
compositeChildItems
Field Type
ConversationMessageParameterCompositeDetails[]
Description
The composite child items of the conversation message parameter.
isList
Field Type
boolean
Description
Indicates whether the conversation message parameter composite details field is a list item (true) or not (false). The default value is false.
isRequired
Field Type
boolean
Description
Indicates whether the conversation message parameter is required (true) or not (false). The default value is false.
label
Field Type
string
Description
The UI label of the conversation message parameter composite details field.
maxListItems
Field Type
int
Description
The maximum number of list items in the conversation message parameter composite details field.
name
Field Type
string
Description
The name of the conversation message parameter composite details field.
primitiveChildItems
Field Type
ConversationMessageParameterPrimitiveDetails[]
Description
An array of primitive child items.

ConversationMessageParameterPrimitiveDetails

Represents the primitive details of the conversation message parameter.

Field Name Description
isList
Field Type
boolean
Description
Indicates whether the conversation message parameter primitive details field is a list item (true) or not (false). The default value is false.
isRequired
Field Type
boolean
Description
Indicates whether the conversation message parameter primitive details field is required (true) or not (false). The default value is false.
label
Field Type
string
Description
The UI label of the conversation message parameter primitive details field.
maxListItems
Field Type
int
Description
The maximum number of list items that are allowed in the conversation message parameter primitive details field.
name
Field Type
string
Description
The name of the conversation message parameter primitive details field.
sobjectType
Field Type
string
Description
The sObject type.
valueType
Field Type
ConversationMessageValueType (enumeration of type string)
Description

The type of the conversation message parameter value. Valid values are:

  • Boolean
  • Date
  • DateTime
  • Double
  • ImageId
  • Integer
  • RecordId
  • Text
  • Url

ConversationMessageParameter

Represents a conversation message parameter.

Field Name Description
compositeTypeDetails
Field Type
ConversationMessageParameterCompositeDetails
Description
An array of composite type details.
parameterType
Field Type
ConversationMessageParameterType (enumeration of type string)
Description

Required. The type of conversation message parameter. Valid values are:

  • CustomComposite
  • CustomPrimitive
  • RecordIds
primitiveTypeDetails
Field Type
ConversationMessageParameterPrimitiveDetails
Description
An array of primitive type details.

Wildcard Support in the Manifest File

This metadata type supports 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.