Use TMF629 Outbound Notification API for customer and customer account management, such as creation, update, and retrieval of customers.
Outbound notifications can be configured to be triggered for change events on the parent entity (Account) as well as for relevant sub-resources, see Supported Sub-Resources for TMF Outbound Notifications for the list of supported sub-resources in scope.
The user must configure the notification framework to detect CDC events and invoke the relevant TMF Open API implementations that generate the event payloads and forward them to the target systems configured within the API.
This API has been tested with an external system using TMF-aligned customizations. It may not include all optional fields and may not work out-of-the-box with your system. Customizations will likely be required. We recommend a thorough evaluation to ensure it meets your specific needs.
Note
Available In
This API is available in the managed package.
Prerequisites
MuleSoft License required: MuleSoft Direct for Communications Cloud (add-on for Communications Cloud) or MuleSoft Anypoint Base Subscription.
The notification uses a fire-and-forget approach. Salesforce does not process or store the response in any objects. MuleSoft logs and tracks all received notifications.
In alignment with TMF v4 standards for event notifications, the system sends the same payload, which includes the full customer resource and the supported related sub-resources, for all events.
Access to the target system is authenticated using the OAuth 2.0 Client Credentials grant type.
In case of failure when invoking the target system endpoint, the request is retried up to three times, with a two second interval between attempts.
TMF629 v4 Inbound API response may include optional fields. According to TMF specifications, if the outbound Event Notification payload contains unsupported optional parameters, the downstream system may reject it with a 4xx error. To avoid this, tailor the payload to include only the optional fields supported by the client.
Salesforce and MuleSoft do not have a centralized event hub configured by default. Customers are responsible for setting up their own event hub to manage subscribers. Outbound notifications are generated and sent directly to a single, client-defined target endpoint.
The Allow users to relate a contact to multiple accounts feature enables a single contact to be associated with multiple accounts through the AccountContactRelation object in Salesforce. Since this feature is disabled by default, the contactToMultipleAccountsEnabled query parameter must only be set to true when the feature is enabled, and only during the creation of integration definitions.
The following table summarizes the change events supported for the Account entity, along with the required configurations to trigger them through the Notification Framework.
When configuring Object Integration Definitions, ensure you use the exact RelatedFieldName values provided in the table below.
Important
TMF Resource
SalesforceEntity
Scenario
changeEventType Supported
Notification Event Path
RelatedFieldName
Customer
Account
Creation of an Account record
Create
/api/notification/customerCreateEvent
”RelatedFieldName”:“Id”
Updates to attributes of an existing Account record
The core entity does not include a status field, and this API is designed to work only with the core model—not with the managed package. Consequently, the inbound API does not return a status value, and status changes do not trigger notifications by default.
To enable status-based notifications, you can create a custom field to track status and subscribe to its changes using the Salesforce Notification Framework. However, while this approach allows notifications to be triggered, the updated status field value will not be included in the notification payload.
Note
Sample Outbound Notification Request
This is a sample payload sent to the target system endpoint for the event Type: CustomerCreateEvent.
The event notification payload is same for all three events (CustomerCreateEvent, CustomerAttributeValueChangeEvent, CustomerStateChangeEvent). The eventType value will differ between the three events.
CustomerCreateEvent or CustomerAttributeValueChangeEvent or CustomerStateChangeEvent
correlationId
string
No
TRUE
inputPayload.correlationId
timeOccurred
string
No
TRUE
inputPayload.commitTimestamp as UTC
event.customer
object
Yes
TRUE
TMF629v4 Inbound response payload
Supported Sub-Resources for TMF Outbound Notifications
This section outlines the sub-resources within TMF629 for which outbound notifications can be configured for create, update, and delete operations.
Refer to Assumptions section for essential configuration guidelines and design assumptions required to enable TMF outbound notifications on these sub-resources.
Outbound notifications on the Contact and Contact Medium sub-resources are currently excluded, as these are already addressed by TMF 632.
When the parent account association of an account is modified, notifications are triggered only from the child account where the association or disassociation occurs. This is achieved by configuring Object Integration Definition mappings to monitor changes to the Account.ParentId field on the child account. Since the Account entity does not maintain direct references to its child accounts, notifications can only be configured at the child account level and cannot be triggered from the parent account when these associations change.
Note
For each sub-resource listed below, use the RelatedFieldName specified in the table to configure the Object Integration Definition mappings. This ensures the Salesforce Notification Framework triggers notifications accurately for the corresponding change events.
Below is a sample payload that is received from the notification framework when a new Account is associated with a Contact and the query parameter ContactToMultipleAccountsEnabled = true.
Below is a sample payload that is received from the notification framework when a new Account is associated with a Contact and the query parameter ContactToMultipleAccountsEnabled = false.
The Notification Framework must be configured to trigger CustomerAttributeValueChangeEvent events only for changes to the Contract.AccountId attribute. All other attribute-level changes on the Contract are handled through TMF651.
The creation of new contracts and updates to existing contracts trigger notifications through both TMF651 and TMF629.