Represents a notification definition, including the criteria that trigger the notification and the channels, recipients, and content used to deliver it. This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
NtfcnDefinition components have the suffix .ntfcnDefinition and are stored in the ntfcnDefinitions folder.
Version
NtfcnDefinition components are available in API version 62.0 and later.
Fields
description
Type: string
Description: The description of the notification.
fullName
Type: string
Description: Required. The unique name of the NtfcnDefinition component. Inherited from the Metadata metadata type. This field isn’t updateable.
masterLabel
Type: string
Description: Required. The name of the notification.
Description: The recipients of the notification for this channel.
NtfcnCondition
fieldName
Type: string
Description: Required. The API name of the field on the target object that’s evaluated by the condition, such as Status or Priority.
operator
Type: string
Description: Required. The operator used to compare the field to the value.
Possible values:
Equals
GreaterThan
GreaterOrEqual
LessThan
LessOrEqual
Contains
DoesNotContain
sequenceNumber
Type: int
Description: Required. The order in which the condition is evaluated.
value
Type: string
Description: Required. The value that the field is compared to when the condition is evaluated.
NtfcnChannelActionDef
label
Type: string
Description: Required. The user-defined label of the action.
notificationActionName
Type: string
Description: Required. The developer name of the action.
targetReference
Type: string
Description: The reference to the ID of the action target.
targetType
Type: string
Description: The type of action target, such as a Salesforce URL, Slack URL, in-app URL, or Microsoft Teams URL.
NtfcnChannelCont
emailTemplate
Type: string
Description: The email template included in the notification when the channel type is email.
messageBody
Type: string
Description: The message body of the notification.
messageTitle
Type: string
Description: The title, or subject, of the notification.
senderEmailAddress
Type: string
Description: The sender email address used for email notifications.
NtfcnChannelRec
active
Type: boolean
Description: Indicates whether the recipient is active (true) or not (false).
recipient
Type: string
Description: Required. The identifier of the notification recipient. The recipient can be an email address, a channel ID, or a user field on an object.
recipientType
Type: string
Description: Required. The type of recipient, such as an email address, user field, Slack channel, in-app channel, or Microsoft Teams channel.
targetIdentifier
Type: string
Description: The name of the destination Slack or Microsoft Teams app.
teamIdentifier
Type: string
Description: The workspace ID or team ID of the recipient’s Slack channel or Microsoft Teams channel.
Declarative Metadata Sample Definition
A sample XML definition of a NtfcnDefinition component is shown here.