TMF629 v4 Customer Management - Outbound Notification

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.

  • /api/notification/customerCreateEvent
  • /api/notification/customerAttributeValueChangeEvent
  • /api/notification/customerStateChangeEvent (status field)

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.

This API is available in the managed package.

  • MuleSoft License required: MuleSoft Direct for Communications Cloud (add-on for Communications Cloud) or MuleSoft Anypoint Base Subscription.
  • Communications cloud license required: Communications Cloud Growth.
  • 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.

    Contact Multiple Accounts

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.

TMF ResourceSalesforceEntityScenario
changeEventType SupportedNotification Event PathRelatedFieldName
CustomerAccountCreation of an Account recordCreate/api/notification/customerCreateEvent"RelatedFieldName":"Id"
Updates to attributes of an existing Account recordUpdate/api/notification/customerAttributeValueChangeEvent"RelatedFieldName":"Id"
  • 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.

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.

TMF FieldTMF TypeIs it Mandatory ?SupportedMappings
idstringNoTRUEMule correlation Id
eventIdstringNoTRUEinputPayload.eventId
eventTimestringNoTRUEinputPayload.commitTimestamp as UTC
eventTypestringNoTRUECustomerCreateEvent or CustomerAttributeValueChangeEvent or CustomerStateChangeEvent
correlationIdstringNoTRUEinputPayload.correlationId
timeOcurredstringNoTRUEinputPayload.commitTimestamp as UTC
event.customerobjectYesTRUETMF629v4 Inbound response payload

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.

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.

TMF Sub-resource: EngagedParty
Salesforce entity: AccountContactRelationship[ACR]/Contact

TMF ResourceSalesforceEntity
ScenariochangeEventType SupportedNotification Event PathRelatedFieldName
EngagedPartyAccountContactRelationship [when the contactToMultipleAccountsEnabled = true]Association of a new Contact with an existing AccountCreate/api/notification/customerAttributeValueChangeEventAccountId
Disassociation of a contact from an accountDelete/api/notification/customerAttributeValueChangeEventAccountId
Contact[when the contactToMultipleAccountsEnabled = false]Updates to Account associated with a ContactUpdates/api/notification/customerAttributeValueChangeEventAccountId
Association of an Account with a ContactCreate/api/notification/customerAttributeValueChangeEventAccountId

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.

TMF Sub-resource: AgreementRef
Salesforce entity: Contract

  • 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.
TMF ResourceSalesforce EntityScenariochangeEventType SupportedNotification Event PathRelatedFieldName
AgreementRefContractWhen a Contact is associated with an AccountCreate/api/notification/CustomerAttributeValueChangeEventAccountId
When an existing Contract is deleted from an AccountDelete/api/notification/CustomerAttributeValueChangeEventAccountId
Updates to the Contract entityUpdate/api/notification/CustomerAttributeValueChangeEventAccountId

Below is a sample payload sent by the notification framework when a Contract is associated with an account.