TMF621 v4 Trouble Ticket Management - Outbound Notification
The TMF621 Outbound Notification API enables the configuration of outbound notifications for trouble ticket events, including creation and updates. These notifications encompass critical changes, such as status updates, to ensure relevant stakeholders remain informed. Outbound notifications can be configured to be triggered for change events on the parent entities (Case and CaseTroubleTicket) 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/troubleTicketCreateEvent/api/notification/troubleTicketAttributeValueChangeEvent/api/notification/troubleTicketStateChangeEvent(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.
- The TMF621 Inbound API version 4 is scheduled for deprecation beginning with the Summer’26 release. Clients are encouraged to migrate to version 5.
- To maintain backward compatibility, the API provides a transformation layer that converts version 5 responses into the version 4 structure. This transformation is modular and can be disabled for clients already consuming version 5.
This API is available in the managed package and Salesforce platform.
- 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 Case 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.
- Subscriber mechanism is not implemented.
- 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.
- The 621 v5 Inbound API is used to retrieve Case-related details that are included in the Event Notification payload sent to the external system
- Prerequisite for 621 v5 Inbound API.
- Retrieve a Trouble Ticket method is used to get the Case details.
- OAuth is used as the authentication method to establish a connection and invoke the Inbound API.
- TMF621 v5 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.
- A Case is eligible for TMF621 outbound notifications only when it has an associated
CaseTroubleTicketthrough a master–detail relationship. Notification requests to the/TroubleTicketCreateEventendpoint must be configured exclusively on theCaseTroubleTicketentity to ensure notifications are triggered when a trouble ticket is created and linked to a Case. - Configure the Notification Framework to send updates to Case and
CaseTroubleTicketattributes to the/TroubleTicketAttributeValueChangeEventendpoint. Case status updates must be sent specifically to the/TroubleTicketStateChangeEventendpoint. As noted above, outbound notifications are triggered only for Cases that have an associatedCaseTroubleTicket.
The following table summarizes the change events supported for the Case and CaseTroubleTicket entities, 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 Resource | SalesforceEntity | Scenario | changeEventType Supported | Notification Event Path | RelatedFieldName |
|---|---|---|---|---|---|
| TroubleTicket | CaseTroubleTicket | Creation of a new CaseTroubleTicket record | Create | /api/notification/troubleTicketCreateEvent | "RelatedFieldName":"Case.CaseNumber" |
| Updates to the CaseTroubleTicket attributes | Update | /api/notification/troubleTicketAttributeValueChangeEvent | "RelatedFieldName":"Case.CaseNumber" | ||
| Case | Updates to the Case attributes | Update | /api/notification/troubleTicketAttributeValueChangeEvent | "RelatedFieldName":"CaseNumber" | |
| Updates to the Case.Status field | Update | /api/notification/troubleTicketStateChangeEvent | "RelatedFieldName":"CaseNumber" |
This is a sample payload sent to the target system endpoint for the event Type: TroubleTicketCreateEvent.
The event notification payload is same for all three events (TroubleTicketCreateEvent, TroubleTicketAttributeValueChangeEvent, TroubleTicketStatusChangeEvent). The eventType value will differ between the three events.
| TMF Field | TMF type | Is it Mandatory ? | Supported | Mappings |
|---|---|---|---|---|
| id | string | No | TRUE | Mule correlation id |
| eventId | string | No | TRUE | inputPayload.eventId |
| eventTime | string | No | TRUE | inputPayload.commitTimestamp as UTC |
| eventType | string | No | TRUE | TroubleTicketCreateEvent or TroubleTicketValueChangeEvent or TroubleTicketStateChangeEvent |
| correlationId | string | No | TRUE | inputPayload.correlationId |
| timeOcurred | string | No | TRUE | inputPayload.commitTimestamp as UTC |
| event.troubleTicket | object | Yes | TRUE | TMF651v4 Inbound response payload |
This section outlines the sub-resources within TMF621 for which outbound notifications can be configured for create and update operations.
- Refer to Assumptions section for essential configuration guidelines and design assumptions required to enable TMF outbound notifications on these sub-resources.
- For each sub-resource listed below, use the RelatedFieldName specified in the table to configure the Object Integration Definition mappings. This ensures that the Salesforce Notification Framework triggers notifications accurately for the corresponding change events.
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: Attachment
Salesforce entity: ContentVersion
Since the ContentVersion entity does not maintain a direct reference to its related Case record, the RelatedFieldName cannot be configured in the Object Integration Definition mappings. To address this, the API executes a polymorphic SOQL query on ContentDocumentLink, which returns all entities linked to a given ContentDocumentId—including both the related Case and the User who created the record. The API then identifies the Case by filtering results where the LinkedEntityId begins with the Salesforce Case prefix (500).
| TMF Resource | Salesforce Entity | Scenario | changeEventType Supported | Notification Event Path |
|---|---|---|---|---|
| Attachment | ContentVersion | Upload of a new document on the parent Case | Create | /api/notification/troubleTicketAttributeValueChangeEvent |
| Deletion of an existing document record from the parent Case | Delete | /api/notification/troubleTicketAttributeValueChangeEvent | ||
| Updates to an existing document | Update | /api/notification/troubleTicketAttributeValueChangeEvent |
Below is a sample payload that is received from the notification framework when an new attachment for a case record is uploaded.