Property description

The notificationTemplates property configures the appearance of notifications and determines whether the specified notification type will be sent out.

Administrators can also create and edit notifications without writing JSON, in Settings > Automations > Notifications. Each notification created there is installed as its own automation package. See Notifications.

Minimal JSON

{
    "key": "",
    "notificationTypeKey": "",
    "notificationChannelKey": "",
    "titleTemplate": ""
    //"descriptionHtmlTemplate":""
}
{
    "key": "web_socket_completed_attributes",
    "notificationTypeKey": "automation",
    "notificationChannelKey": "web_socket",
    "titleTemplate": "Document '{{currentObject}.name()}' ready for review",
    "descriptionTemplate": "The document {{currentObject}.link()} has been completed and is ready for review. Please validate its content and classification."
}

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey.stringYes
notificationTypeKeyKey of the notification type. See supported notificationTypeKey values.stringYes
notificationChannelKeyChannel which delivers the notifications. See supported notificationChannelKey values.stringYes
titleTemplateNotification text template. Relative parameters can be included inside { } brackets. Supported relative parameters differ depending on the notification type.stringYes
descriptionHtmlTemplateUsed when the notification channel is set to email or grouped_email. Mandatory only for these channels.stringYes* (only for email or grouped_email)
descriptionTemplateNotification text template with relative parameters inside {} brackets. Used only with notification channel web_socket. Displayed as the notification description.stringNo
enabledEnables or disables sending the notification. Default true. In a patch, an omitted enabled keeps the value from the base package.booleanNo
moduleKeyKey of the module used for the notification template. Supported values are branching, dictionary, glossary, hidden, simple_flow. When omitted, a regular package’s template uses glossary; the core package and its managed patch treat an omitted moduleKey as no module.stringNo
stateState of the notification template. See supported state values.stringNo
translationsLanguage variants of the template text. One entry per language; see Translations.arrayNo

Translations

The translations property holds one entry per installed language. A translation replaces the title, description, and HTML body together, so fill in every text the channel uses.

PropertyDescriptionValuesMandatory
languageCodeFull language code of an installed language, for example cs-CZ or en-GB. Matching is case-insensitive. A code the instance has not installed produces a warning and the entry is skipped; it does not fail the installation.stringYes
titleTemplateTranslated title template.stringYes
descriptionTemplateTranslated plain description, used with channel web_socket.stringNo
descriptionHtmlTemplateTranslated HTML body, used with channels email and grouped_email. Mandatory only for these channels: an email-channel translation without it rejects the package installation with an error.stringYes* (only for email or grouped_email)

A language code may appear only once per template; a duplicate fails validation. When you reinstall a package, translations are added, updated and removed to match the package, so a language you drop from the package is removed from the template. Stored notifications keep the language they were created in.

{
    "key": "deadline_web_socket",
    "notificationTypeKey": "automation",
    "notificationChannelKey": "web_socket",
    "titleTemplate": "'{{currentObject}.name()}' is due soon",
    "descriptionTemplate": "{{currentObject}.link()} is due within a week.",
    "translations": [
        {
            "languageCode": "cs-CZ",
            "titleTemplate": "'{{currentObject}.name()}' brzy vyprší",
            "descriptionTemplate": "{{currentObject}.link()} vyprší do týdne."
        }
    ]
}

Translations apply to automation sendNotification templates and to core event notifications such as comment_added. Core event notifications use the system templates that the core package owns. To change their text or translations, write a patch over core. See System notification templates.

System notification templates

The core package owns all system notification templates. Each template uses the key #<Enum_Key>, for example #web_socket_comment_added, and ships with English text and a cs-CZ translation. The leading # keeps the key as it is; a bare key would be prefixed core_. Database release scripts no longer seed these templates.

  • To change a system template, write a patch over core.
  • A regular package cannot define a template key that another package owns; installing one that does is rejected.
  • Recipient rules (the notifications package setting) are not part of this change. Packages still own them.

Upgrade keeps instance edits

When a new version of core is installed, core takes over the notification templates already in the instance. Any difference from the delivered definition, such as edited text or a disabled template, is written to the managed patch live-edits-core. The instance behaves the same after the upgrade.

Patching notification templates

  • A template with "action": "update" is a partial update: fields you omit, including enabled, keep their base value. A translations list inside an update replaces the whole list.
  • To change single languages, use a template entry without action that carries translations entries with action set to add, update or delete and a languageCode. A translation update is partial as well.
  • A delete or update of a translation the base package lacks is a blocking error unless the entry carries "ifPresent": true. An add for a language the template already has fails validation of the merged package; use update instead.
{
    "key": "deadline_web_socket",
    "translations": [
        { "action": "update", "languageCode": "cs-CZ", "titleTemplate": "'{{currentObject}.name()}' brzy vyprší, zkontrolujte ho" },
        { "action": "delete", "languageCode": "de-DE", "ifPresent": true }
    ]
}

For the general patch rules, see Patch Packages.

Supported notificationChannelKey values

ValueDescription
emailEmail notifications.
grouped_emailNotifications are grouped and sent out in a set interval, e.g. every 30 min.
web_socketIn-app notifications.

Supported state values

ValueDescription
activeThe notification is visible and available to users. Default value.
inactiveThe notification is created but isn’t visible anywhere.

Supported notificationTypeKey values

Notification type keyDescription
anonymous_concept_approvedNotifies user that a concept or change request has been approved.
anonymous_concept_declinedNotifies user that a concept or change request has been declined.
attribute_editNotifies user of an attribute being edited.
attribute_value_changedNotifies user when an attribute value changes.
automationNotifies user as a result of an automation event. Automation notifications support the following dynamic expressions.
bulk_delete_finishedNotifies user when a bulk delete operation was completed successfully.
bulk_delete_startedNotifies user when a bulk delete operation has started.
bulk_domains_infoProvides information about bulk domain actions.
bulk_edit_finishedNotifies user when a bulk edit was completed successfully.
bulk_edit_infoProvides information related to a bulk edit operation.
bulk_edit_startedNotifies user when a bulk edit has started.
child_object_createdNotifies user that a child object has been created.
clone_object_failedNotifies user that an object cloning process failed.
clone_object_finishedNotifies user that an object has been successfully cloned.
comment_addedNotifies user that a comment was added to an object or discussion.
concept_appliedNotifies user that a concept has been applied.
concept_applied_by_creatorNotifies user that a concept was applied by its creator.
concept_approvedNotifies user that a concept has been approved.
concept_declinedNotifies user that a concept has been declined.
concept_remove_sharingNotifies user that shared access to a concept was removed.
concept_sharedNotifies user that a concept has been shared with them.
db_proc_finishedNotifies user about progress or results of a database processing task.
db_proc_object_addedNotifies user about progress or results of a database processing task.
db_proc_object_deletedNotifies user about progress or results of a database processing task.
db_proc_object_updatedNotifies user about progress or results of a database processing task.
db_proc_startedNotifies user about progress or results of a database processing task.
forgotten_passwordSends password recovery instructions to the user.
grouped_notificationGroups multiple notifications in one message.
import_finishedNotifies user that object import was completed successfully.
import_object_addedNotifies user that object import was added.
import_object_deletedNotifies user that object import was deleted.
import_object_modifiedNotifies user that object import was modified.
import_startedNotifies user that object import has started.
ingestion_report_progressProvides progress updates for a data ingestion report.
lineage_parsing_failedNotifies user that a lineage parsing task has failed.
lineage_parsing_finishedNotifies user that a lineage parsing task was completed successfully.
lineage_parsing_startedNotifies user that a lineage parsing task has started.
marketplace_package_delete_progressNotifies user that the package deletion via Marketplace is in progress.
marketplace_package_version_install_progressNotifies user that the package version installation via Marketplace is in progress.
master_hash_updateNotifies user that the master hash has been updated.
merge_request_approvedNotifies user that a merge request has been approved.
merge_request_disapprovedNotifies user that a merge request was rejected.
merge_request_resolvedNotifies user that a merge request has been resolved.
merge_request_started_propagatingNotifies user that merge changes have started propagating.
model_owner_has_changedNotifies user that the model owner has changed.
model_version_changes_approvedNotifies user that a model version change request has been approved.
model_version_changes_disapprovedNotifies user that a model version change request has been rejected.
model_version_changes_started_propagatingNotifies user that model version changes started propagating.
notification_threshold_overflowNotifies user that notification count has exceeded the threshold.
object_all_users_workflow_has_changedNotifies user that the workflow state changed after being approved by all required users. For more information, see Workflow Transitions.
object_modifiedNotifies user that an object has been modified.
object_relation_addNotifies user that an object relation was added.
object_relation_deleteNotifies user that an object relation was removed.
object_shareNotifies user that an object has been shared with them.
object_workflow_state_has_changedNotifies user of a change in an object’s workflow state.
objects_export_failedNotifies user that an object export operation has failed.
objects_export_finishedNotifies user that an object export operation was completed successfully.
objects_export_startedNotifies user that an object export operation has started.
package_delete_progressNotifies user about progress of a package deletion.
package_synchronize_infoProvides information related to package synchronization.
package_version_install_progressProvides information on package installation progress.
package_version_rollback_progressProvides information on package rollback progress.
package_version_validation_progressProvides information on package validation progress.
pwd_metadata_load_finishedNotifies user that metadata loading for a PWD file has finished.
refresh_frontendNotifies user that a frontend refresh has been triggered.
refresh_numbering_failedNotifies user that a numbering refresh has failed.
refresh_numbering_finishedNotifies user that a numbering refresh was completed successfully.
refresh_numbering_startedNotifies user that a numbering refresh has started.
registrationNotifies user of a successful registration.
registration_failed_appNotifies user that app registration failed.
registration_failed_userNotifies user that user registration failed.
report_import_progressProvides information on the progress of a report import.
send_anonymous_concept_to_approvalNotifies approvers that an anonymous concept was submitted for approval.
send_concept_to_approvalNotifies approvers that a concept was submitted for approval.
space_modifiedNotifies user that a space has been modified.
space_request_accessNotifies admins of a request to access a space.
task_finishedNotifies user that a task was completed successfully.
task_updatedNotifies user that a task has been updated.
user_added_to_groupNotifies user (admin) that another user was successfully added to a group.
user_application_tagNotifies user they were tagged in an application.
user_assigned_to_object_attributeNotifies user they were assigned to an object attribute.
user_assigned_to_space_attributeNotifies user they were assigned to a space attribute.
user_comment_tagNotifies user they were mentioned in a comment.
user_import_failedNotifies user that user import has failed.
user_import_finishedNotifies user that user import was finished successfully.
user_object_relation_assignedNotifies user that the user object relation was created successfully.
user_object_relation_assigned_in_appNotifies user that the user object relation in an application was created successfully.
user_object_relation_assigned_in_spaceNotifies user that the user object relation in a space was created successfully.
user_object_relation_unassignedNotifies user the user object relation was deleted.
user_object_relation_unassigned_in_appNotifies user the user object relation in an application was deleted.
user_object_relation_unassigned_in_spaceNotifies user the user object relation in a space was deleted.
user_object_tagNotifies user they were tagged on an object.
user_removed_from_groupNotifies user (admin) that another user was successfully removed from a group.
user_space_tagNotifies user they were tagged in a space.
your_concept_was_appliedNotifies user that their concept has been applied.