NotificationTypeConfig controls org-level notification delivery settings for standard and custom notification types. It groups desktop, mobile, and Slack delivery switches with per-app enablement settings for each notification type.
It configures delivery for a custom notification type; it does not define the CustomNotificationType itself. Channel settings and app settings also have different scopes: enabling an app for one notification type does not enable that app globally.
Key Elements
The repeated notificationTypeSettings entries hold settings for individual notification types. Within each entry, appSettings can repeat to configure supported apps separately.
| Element | What the Element Controls |
|---|---|
notificationType |
Required API name of the standard or custom notification type. Standard types use predefined names. Managed-package custom types include their namespace prefix. |
notificationChannels |
Groups the delivery-channel switches for the notification type. Salesforce documents this as one NotificationChannels structure per notificationTypeSettings entry. |
desktopEnabled |
Whether desktop notifications are enabled: true or false. |
mobileEnabled |
Whether mobile notifications are enabled: true or false. |
slackEnabled |
Whether Slack notifications are enabled: true or false. |
appType |
Distinguishes CONNECTED_APP and EXTERNAL_CLIENT_APP entries within appSettings. |
connectedAppName |
Required app API name within appSettings. For connected-app entries, it identifies a ConnectedApp. Managed-package app names include their namespace prefix. |
enabled |
Whether the app identified by that appSettings entry is enabled for this notification type: true or false. It is not an app-wide enablement switch. |
Behavior and Constraints
Each notificationTypeSettings entry identifies its notification type by API name, not by its display label. For a standard notification type, use its predefined name. For a custom notification type, use the custom type's API name, including the namespace prefix when it comes from a managed package.
notificationChannels and appSettings configure different parts of delivery. The channel switches control desktop, mobile, and Slack delivery for the notification type. Each app entry controls whether a particular supported app is enabled for that type. Neither group of settings should be treated as a substitute for the other.
Retrieve NotificationTypeConfig to discover the notification type API names available in an org and the app API names supported for each type. Do not assume that every notification type or app entry retrieved from one org is available in another.
Deployment and Retrieval
Components use the .config suffix and reside in the notificationTypeConfig folder. In package.xml, use the metadata type name NotificationTypeConfig. The type supports the wildcard member * to retrieve all available notification settings for the org.
Connected-app name collisions
An Enhanced Connected App (ECA) and a Connected App (CA) can have the same name. That collision, or migration of a CA to an ECA, limits what retrieval and deployment can reproduce:
- Retrieval returns only the ECA when an ECA and CA share the same name, or when the CA has been migrated to an ECA.
- Deployment does not apply the CA settings when the retrieved configuration is deployed to a new org where the CA and ECA share a name.
- Existing CA settings require the UI when the CA shares a name with an ECA or has been migrated to an ECA. Those CA app settings cannot be changed through the Metadata API.
A successful retrieval therefore does not mean that the resulting configuration can reproduce every CA setting in another org.
Notification type availability
A cross-org deployment can encounter a notification type that the target org rejects. The reported record_collection_share failure below occurred where Record Collection Sharing was missing from Notification Delivery Settings. The report did not identify a feature, permission, or setting that would make the type available.
Relationships
The configuration points to custom notification definitions and, for connected-app entries, connected app definitions. These references identify what is being configured; the delivery settings remain in NotificationTypeConfig.
References
-
ConnectedApp:connectedAppName, for connected-app entries. -
CustomNotificationType:notificationType, for custom notification types.
Documentation Inconsistencies
notificationChannels has a cardinality discrepancy - a difference in whether the structure occurs once or repeats. Salesforce documents it as a single NotificationChannels structure inside each notificationTypeSettings entry, while an alternate schema representation exposes it as an array. Account for that difference when interpreting generated structures. notificationTypeSettings and appSettings are repeated structures in both representations.
Reported Issues
-
A deployment can fail because the target org rejects a notification type. In June 2023, a deployment to a client sandbox failed with
record_collection_share is an invalid notification type, although deployments to other sandboxes and scratch orgs had succeeded. The client sandbox lacked Record Collection Sharing under Setup -> Notification Builder -> Notification Delivery Settings. No enabling feature, permission, or setting was established. Invalid notification type report. -
A retrieval can report a duplicate component-name warning for this configuration. In 2021, a developer-org retrieval using a broad wildcard manifest reported "Duplicate object names in the same package" for
notificationTypeConfig/NotificationTypeConfig.config. The discussion did not establish a cause or fix specific toNotificationTypeConfig; its later answer describes a Lightning web component issue instead. Duplicate-name retrieval report.
Common Questions
Does NotificationTypeConfig create a custom notification type?
No. CustomNotificationType defines the custom notification type. NotificationTypeConfig references that type through notificationType and configures its delivery channels and per-app settings.
How do I retrieve all notification delivery settings and find their API names?
Use NotificationTypeConfig with the wildcard member * in package.xml. The retrieved configuration identifies the available notification types and the supported app API names for each type.
Why are Connected App settings missing or unchanged after deployment?
If a Connected App shares a name with an Enhanced Connected App, or has been migrated to one, retrieval returns only the ECA. Deployment to a new org with the same-name collision does not apply the CA settings. In an existing org, change the affected CA settings through the UI rather than the Metadata API.
Why does deployment say record_collection_share is an invalid notification type?
A reported failure occurred in a target sandbox that lacked Record Collection Sharing in Notification Delivery Settings, even though other orgs accepted the deployment. The report did not establish which feature, permission, or setting enables that notification type.